pull/315/head
gedoor 4 years ago
parent e3cddfc40f
commit c300f6b9e1
  1. 3
      app/src/main/java/io/legado/app/App.kt

@ -63,7 +63,8 @@ class App : MultiDexApplication() {
override fun onConfigurationChanged(newConfig: Configuration) { override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig) super.onConfigurationChanged(newConfig)
when (newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK) { when (newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK) {
Configuration.UI_MODE_NIGHT_YES, Configuration.UI_MODE_NIGHT_NO -> applyDayNight() Configuration.UI_MODE_NIGHT_YES,
Configuration.UI_MODE_NIGHT_NO -> applyDayNight()
} }
} }

Loading…
Cancel
Save