pull/1738/head
kunfei 3 years ago
parent 72259133b8
commit c1646dafdd
  1. 4
      app/src/main/java/io/legado/app/help/storage/Backup.kt

@ -130,7 +130,7 @@ object Backup {
}
}
@Throws(java.lang.Exception::class)
@Throws(Exception::class)
private fun copyBackup(context: Context, uri: Uri, isAuto: Boolean) {
DocumentFile.fromTreeUri(context, uri)?.let { treeDoc ->
for (fileName in backupFileNames) {
@ -153,7 +153,7 @@ object Backup {
}
}
@Throws(java.lang.Exception::class)
@Throws(Exception::class)
private fun copyBackup(rootFile: File, isAuto: Boolean) {
for (fileName in backupFileNames) {
val file = File(backupPath + File.separator + fileName)

Loading…
Cancel
Save