feat: 优化代码

pull/172/head
kunfei 5 years ago
parent ff58996f11
commit 2ae8cea905
  1. 2
      app/src/main/java/io/legado/app/ui/config/BackupRestoreUi.kt

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

Loading…
Cancel
Save