pull/94/head
kunfei 5 years ago
parent d7c1da569c
commit c97017e961
  1. 6
      app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt

@ -93,7 +93,10 @@ class BackupConfigFragment : PreferenceFragmentCompat(),
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {
when (key) { when (key) {
PreferKey.webDavUrl, PreferKey.webDavAccount, PreferKey.webDavPassword, PreferKey.backupPath -> { PreferKey.webDavUrl,
PreferKey.webDavAccount,
PreferKey.webDavPassword,
PreferKey.backupPath -> {
upPreferenceSummary(key, getPrefString(key)) upPreferenceSummary(key, getPrefString(key))
} }
} }
@ -188,7 +191,6 @@ class BackupConfigFragment : PreferenceFragmentCompat(),
.onGranted { .onGranted {
launch { launch {
AppConfig.backupPath = Backup.legadoPath AppConfig.backupPath = Backup.legadoPath
toast(R.string.backup_success)
} }
} }
.request() .request()

Loading…
Cancel
Save