@ -139,10 +139,13 @@ 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() {
val text = String(requireContext().assets.open("help/webDavHelp.md").readBytes())
@ -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?) {