优化
This commit is contained in:
1 parent
7c8655e137
commit
fcfb669498
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user