feat: 优化代码

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

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

Loading…
Cancel
Save