We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85e1b17 commit 467abdeCopy full SHA for 467abde
app/src/main/java/com/osfans/trime/ui/main/Pickers.kt
@@ -65,7 +65,7 @@ suspend fun Context.colorPicker(
65
items = all.map { it.second }.toTypedArray()
66
val current = prefs.themeAndColor.selectedColor
67
val schemeIds = all.map { it.first }
68
- checkedItem = schemeIds.indexOf(current)
+ checkedItem = schemeIds.indexOf(current).takeIf { it > -1 } ?: 1
69
}
70
postiveDispatcher = Dispatchers.Default
71
onOKButton {
0 commit comments