remove NotificationIndex Int index

This commit is contained in:
David Langley 2021-08-11 09:59:23 +01:00
parent 7f3c4f0073
commit 45077c69f7
1 changed files with 4 additions and 8 deletions

View File

@ -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;
}
/**