@ -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 false
private fun showHelp() {
@ -114,9 +114,10 @@ class ThemeConfigFragment : PreferenceFragment(),
R.id.menu_theme_mode -> {
AppConfig.isNightTheme = !AppConfig.isNightTheme
ThemeConfig.applyDayNight(requireContext())
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {