Fix theme selection on theme selection preference screen
This commit is contained in:
parent
e7b3920c69
commit
da12d03460
@ -47,11 +47,11 @@ class ThemesSettingsScreenVM : ViewModel(), KoinComponent {
|
||||
}
|
||||
|
||||
fun selectTheme(theme: Theme) {
|
||||
when(theme.id) {
|
||||
uiSettings.setTheme(when(theme.id) {
|
||||
DefaultThemeId -> ThemeDescriptor.Default
|
||||
BlackAndWhiteThemeId -> ThemeDescriptor.BlackAndWhite
|
||||
else -> ThemeDescriptor.Custom(theme.id.toString())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fun duplicate(theme: Theme) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user