Skip to content

Commit 5981f38

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Convert newpipe/error/UserAction.java to kotlin
1 parent a6b0e49 commit 5981f38

1 file changed

Lines changed: 8 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: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
package org.schabi.newpipe.error;
1+
/*
2+
* SPDX-FileCopyrightText: 2018-2025 NewPipe contributors <https://newpipe.net>
3+
* SPDX-FileCopyrightText: 2025 NewPipe e.V. <https://newpipe-ev.de>
4+
* SPDX-License-Identifier: GPL-3.0-or-later
5+
*/
6+
7+
package org.schabi.newpipe.error
28

39
/**
410
* The user actions that can cause an error.
511
*/
6-
public enum UserAction {
12+
enum class UserAction(val message: String) {
713
USER_REPORT("user report"),
814
UI_ERROR("ui error"),
915
DATABASE_IMPORT_EXPORT("database import or export"),
@@ -36,14 +42,4 @@ public enum UserAction {
3642
GETTING_MAIN_SCREEN_TAB("getting main screen tab"),
3743
PLAY_ON_POPUP("play on popup"),
3844
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-
}
4945
}

0 commit comments

Comments
 (0)