Skip to content

Commit 36d96ca

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Convert newpipe/error/UserAction.java to kotlin
1 parent bca8d08 commit 36d96ca

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

app/src/main/java/org/schabi/newpipe/error/UserAction.java renamed to app/src/main/java/org/schabi/newpipe/error/UserAction.kt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package org.schabi.newpipe.error;
1+
package org.schabi.newpipe.error
22

33
/**
44
* The user actions that can cause an error.
55
*/
6-
public enum UserAction {
6+
enum class UserAction(val message: String) {
77
USER_REPORT("user report"),
88
UI_ERROR("ui error"),
99
DATABASE_IMPORT_EXPORT("database import or export"),
@@ -36,14 +36,4 @@ public enum UserAction {
3636
GETTING_MAIN_SCREEN_TAB("getting main screen tab"),
3737
PLAY_ON_POPUP("play on popup"),
3838
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-
}
4939
}

0 commit comments

Comments
 (0)