pull/94/head
kunfei 5 years ago
parent 5d83cf9726
commit cd4eda3b3b
  1. 16
      app/src/main/java/io/legado/app/help/storage/Restore.kt

@ -40,7 +40,21 @@ object Restore {
} }
} }
} else { } else {
try {
val file = File(path)
for (fileName in Backup.backupFileNames) {
FileUtils.getFile(file, fileName).let {
if (it.exists()) {
it.copyTo(
FileUtils.createFileIfNotExist(Backup.backupPath + File.separator + fileName),
true
)
}
}
}
} catch (e: Exception) {
e.printStackTrace()
}
} }
} }
restore(Backup.backupPath) restore(Backup.backupPath)

Loading…
Cancel
Save