|
|
@ -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() |
|
|
|