remove NotificationIndex Int index
This commit is contained in:
parent
7f3c4f0073
commit
45077c69f7
|
@ -19,14 +19,10 @@ package im.vector.app.features.settings.notifications
|
|||
import org.matrix.android.sdk.api.pushrules.rest.PushRule
|
||||
import org.matrix.android.sdk.api.pushrules.toJson
|
||||
|
||||
enum class NotificationIndex(val index: Int) {
|
||||
OFF(0),
|
||||
SILENT(1),
|
||||
NOISY(2);
|
||||
|
||||
companion object {
|
||||
fun fromInt(index: Int) = values().first { it.index == index }
|
||||
}
|
||||
enum class NotificationIndex {
|
||||
OFF,
|
||||
SILENT,
|
||||
NOISY;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue