mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
119f2e22c5
commit
e2f8a19cfb
@ -70,11 +70,16 @@ object Restore {
|
||||
} else {
|
||||
ZipUtils.unZipToPath(File(uri.path!!), Backup.backupPath)
|
||||
}
|
||||
}.onSuccess {
|
||||
}.onFailure {
|
||||
AppLog.put("复制解压文件出错\n${it.localizedMessage}", it)
|
||||
return
|
||||
}
|
||||
kotlin.runCatching {
|
||||
restore(Backup.backupPath)
|
||||
LocalConfig.lastBackup = System.currentTimeMillis()
|
||||
}.onFailure {
|
||||
AppLog.put("复制解压文件出错\n${it.localizedMessage}", it)
|
||||
appCtx.toastOnUi("恢复备份出错\n${it.localizedMessage}")
|
||||
AppLog.put("恢复备份出错\n${it.localizedMessage}", it)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user