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.rest.PushRule
|
||||||
import org.matrix.android.sdk.api.pushrules.toJson
|
import org.matrix.android.sdk.api.pushrules.toJson
|
||||||
|
|
||||||
enum class NotificationIndex(val index: Int) {
|
enum class NotificationIndex {
|
||||||
OFF(0),
|
OFF,
|
||||||
SILENT(1),
|
SILENT,
|
||||||
NOISY(2);
|
NOISY;
|
||||||
|
|
||||||
companion object {
|
|
||||||
fun fromInt(index: Int) = values().first { it.index == index }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue