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.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 }
}
} }
/** /**