修复全新安装恢复备份失败bug

* make sure `files/backup` folder created before restore backup
pull/2368/head
Xwite 2 years ago committed by GitHub
parent d23e611fcf
commit 2994098b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/help/storage/Backup.kt

@ -27,7 +27,9 @@ import java.util.concurrent.TimeUnit
object Backup {
val backupPath: String by lazy {
appCtx.filesDir.getFile("backup").absolutePath
val path = appCtx.filesDir.getFile("backup").absolutePath
FileUtils.createFolderIfNotExist(path)
path
}
val backupFileNames by lazy {

Loading…
Cancel
Save