Update WatchType.kt

This commit is contained in:
Osten 2023-12-21 00:10:20 +01:00 committed by GitHub
parent e886fde8b8
commit 5f51a8f7bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,9 +33,9 @@ enum class SyncWatchType(val internalId: Int, @StringRes val stringRes: Int, @Dr
ONHOLD(2, R.string.type_on_hold, R.drawable.ic_baseline_bookmark_24),
DROPPED(3, R.string.type_dropped, R.drawable.ic_baseline_bookmark_24),
PLANTOWATCH(4, R.string.type_plan_to_watch, R.drawable.ic_baseline_bookmark_24),
REWATCHING(5, R.string.type_plan_to_watch, R.drawable.ic_baseline_bookmark_24);
REWATCHING(5, R.string.type_re_watching, R.drawable.ic_baseline_bookmark_24);
companion object {
fun fromInternalId(id: Int?) = values().find { value -> value.internalId == id } ?: NONE
}
}
}