|
|
|
@ -66,7 +66,7 @@ class App : Application() { |
|
|
|
|
override fun onConfigurationChanged(newConfig: Configuration) { |
|
|
|
|
super.onConfigurationChanged(newConfig) |
|
|
|
|
when (newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK) { |
|
|
|
|
Configuration.UI_MODE_NIGHT_YES, Configuration.UI_MODE_NIGHT_NO -> initNightMode() |
|
|
|
|
Configuration.UI_MODE_NIGHT_YES, Configuration.UI_MODE_NIGHT_NO -> applyDayNight() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|