feat: 优化代码

pull/121/head
kunfei 5 years ago
parent ecd221930a
commit eb1af6df3b
  1. 2
      app/src/main/java/io/legado/app/App.kt

@ -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()
}
}

Loading…
Cancel
Save