|
|
@ -66,7 +66,7 @@ object BackupRestoreUi { |
|
|
|
selectFolderRequestCode -> AppConfig.backupPath = Backup.legadoPath |
|
|
|
selectFolderRequestCode -> AppConfig.backupPath = Backup.legadoPath |
|
|
|
else -> { |
|
|
|
else -> { |
|
|
|
Coroutine.async { |
|
|
|
Coroutine.async { |
|
|
|
AppConfig.backupPath = Backup.legadoPath |
|
|
|
AppConfig.backupPath = path |
|
|
|
Backup.backup(fragment.requireContext(), path) |
|
|
|
Backup.backup(fragment.requireContext(), path) |
|
|
|
}.onSuccess { |
|
|
|
}.onSuccess { |
|
|
|
fragment.toast(R.string.backup_success) |
|
|
|
fragment.toast(R.string.backup_success) |
|
|
|