We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca8d08 commit 36d96caCopy full SHA for 36d96ca
1 file changed
…org/schabi/newpipe/error/UserAction.java …a/org/schabi/newpipe/error/UserAction.ktapp/src/main/java/org/schabi/newpipe/error/UserAction.java renamed to app/src/main/java/org/schabi/newpipe/error/UserAction.kt
@@ -1,9 +1,9 @@
1
-package org.schabi.newpipe.error;
+package org.schabi.newpipe.error
2
3
/**
4
* The user actions that can cause an error.
5
*/
6
-public enum UserAction {
+enum class UserAction(val message: String) {
7
USER_REPORT("user report"),
8
UI_ERROR("ui error"),
9
DATABASE_IMPORT_EXPORT("database import or export"),
@@ -36,14 +36,4 @@ public enum UserAction {
36
GETTING_MAIN_SCREEN_TAB("getting main screen tab"),
37
PLAY_ON_POPUP("play on popup"),
38
SUBSCRIPTIONS("loading subscriptions");
39
-
40
- private final String message;
41
42
- UserAction(final String message) {
43
- this.message = message;
44
- }
45
46
- public String getMessage() {
47
- return message;
48
49
}
0 commit comments