优化
This commit is contained in:
@@ -130,7 +130,7 @@ object Backup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Throws(java.lang.Exception::class)
|
@Throws(Exception::class)
|
||||||
private fun copyBackup(context: Context, uri: Uri, isAuto: Boolean) {
|
private fun copyBackup(context: Context, uri: Uri, isAuto: Boolean) {
|
||||||
DocumentFile.fromTreeUri(context, uri)?.let { treeDoc ->
|
DocumentFile.fromTreeUri(context, uri)?.let { treeDoc ->
|
||||||
for (fileName in backupFileNames) {
|
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) {
|
private fun copyBackup(rootFile: File, isAuto: Boolean) {
|
||||||
for (fileName in backupFileNames) {
|
for (fileName in backupFileNames) {
|
||||||
val file = File(backupPath + File.separator + fileName)
|
val file = File(backupPath + File.separator + fileName)
|
||||||
|
|||||||
Reference in New Issue
Block a user