mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
d7c1da569c
commit
c97017e961
@ -93,7 +93,10 @@ class BackupConfigFragment : PreferenceFragmentCompat(),
|
||||
|
||||
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {
|
||||
when (key) {
|
||||
PreferKey.webDavUrl, PreferKey.webDavAccount, PreferKey.webDavPassword, PreferKey.backupPath -> {
|
||||
PreferKey.webDavUrl,
|
||||
PreferKey.webDavAccount,
|
||||
PreferKey.webDavPassword,
|
||||
PreferKey.backupPath -> {
|
||||
upPreferenceSummary(key, getPrefString(key))
|
||||
}
|
||||
}
|
||||
@ -188,7 +191,6 @@ class BackupConfigFragment : PreferenceFragmentCompat(),
|
||||
.onGranted {
|
||||
launch {
|
||||
AppConfig.backupPath = Backup.legadoPath
|
||||
toast(R.string.backup_success)
|
||||
}
|
||||
}
|
||||
.request()
|
||||
|
Loading…
Reference in New Issue
Block a user