diff --git a/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt index 885696cb9..b02431dbe 100644 --- a/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.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() { diff --git a/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt index c54203a97..5863fa600 100644 --- a/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt @@ -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?) {