Update SettingsViewModel.kt

pull/1869/head
yanni goyal 5 months ago
parent 7d6c98ec2e
commit 0ae715a5a6

@ -71,7 +71,7 @@ class SettingsViewModel @Inject constructor(
fun updateDarkThemeConfig(darkThemeConfig: DarkThemeConfig) {
viewModelScope.launch {
userDataRepository.setDarkThemeConfig(darkThemeConfig)
if (Build.VERSION.SDK_INT >= VERSION_CODES.S) {
if (Build.VERSION.SDK_INT >= VERSION_CODES.S) {
val uiModeManager =
context.getSystemService(Context.UI_MODE_SERVICE) as UiModeManager
val splashMode = when (darkThemeConfig) {

Loading…
Cancel
Save