pull/2042/head
kunfei 2 years ago
parent 6c97d29635
commit 9fb1bf5d35
  1. 7
      app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt
  2. 3
      app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt

@ -139,9 +139,12 @@ class BackupConfigFragment : PreferenceFragment(),
override fun onMenuItemSelected(menuItem: MenuItem): Boolean {
when (menuItem.itemId) {
R.id.menu_help -> showHelp()
R.id.menu_help -> {
showHelp()
return true
}
}
return true
return false
}
private fun showHelp() {

@ -114,9 +114,10 @@ class ThemeConfigFragment : PreferenceFragment(),
R.id.menu_theme_mode -> {
AppConfig.isNightTheme = !AppConfig.isNightTheme
ThemeConfig.applyDayNight(requireContext())
return true
}
}
return true
return false
}
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {

Loading…
Cancel
Save