[Themes & Styles] Code cleanup

This commit is contained in:
Prathamesh More 2021-12-17 14:50:50 +05:30
parent 36c94a9813
commit 874e8df94c
9 changed files with 13 additions and 32 deletions

View file

@ -28,10 +28,8 @@ object ThemeManager {
fun getNightMode(
context: Context
): Int = when (context.generalThemeValue) {
LIGHT -> AppCompatDelegate.MODE_NIGHT_NO
DARK,
BLACK -> AppCompatDelegate.MODE_NIGHT_YES
AUTO -> AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
DARK -> AppCompatDelegate.MODE_NIGHT_YES
else -> AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
}
}