Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordesperateCoder <echotodevnull@gmail.com>2020-06-20 17:23:42 +0300
committerdesperateCoder <echotodevnull@gmail.com>2020-06-20 17:23:42 +0300
commitb4aeaa9b0868419f06ebe7374f11d4aa3a3b0ba4 (patch)
treec7ee4a27a3d66188ad82700209ca35dce4214a41
parent7ca8fe14a3d63c0ab0f733a79ba1a3c87a47dd59 (diff)
added TAG_AS_LABEL as activity type
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/model/enums/ActivityType.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/enums/ActivityType.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/enums/ActivityType.java
index ded0795f3..afaeee69c 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/model/enums/ActivityType.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/enums/ActivityType.java
@@ -1,5 +1,7 @@
package it.niedermann.nextcloud.deck.model.enums;
+import it.niedermann.nextcloud.deck.DeckLog;
+
public enum ActivityType {
DECK (1, "deck-dark.svg"),
CHANGE (2, "change.svg"),
@@ -8,7 +10,8 @@ public enum ActivityType {
ARCHIVE (5, "archive.svg"),
HISTORY (6, "actions/history.svg"),
FILES (7, "places/files.svg"),
- COMMENT (8, "actions/comment.svg")
+ COMMENT (8, "actions/comment.svg"),
+ TAGGED_WITH_LABEL (9, "actions/tag.svg")
;
int id;
@@ -40,7 +43,8 @@ public enum ActivityType {
return s;
}
}
- throw new IllegalArgumentException("unknown ActivityType key");
+ DeckLog.error("unknown ActivityType path: " + id);
+ return CHANGE;
}
public static ActivityType findByPath(String path) {
@@ -52,6 +56,7 @@ public enum ActivityType {
return s;
}
}
- throw new IllegalArgumentException("unknown ActivityType key");
+ DeckLog.error("unknown ActivityType path: " + path);
+ return CHANGE;
}
}