优化
This commit is contained in:
@@ -37,7 +37,7 @@ object Restore {
|
|||||||
kotlin.runCatching {
|
kotlin.runCatching {
|
||||||
FileUtils.delete(Backup.backupPath)
|
FileUtils.delete(Backup.backupPath)
|
||||||
if (uri.isContentScheme()) {
|
if (uri.isContentScheme()) {
|
||||||
DocumentFile.fromTreeUri(context, uri)?.openInputStream()!!.use {
|
DocumentFile.fromSingleUri(context, uri)!!.openInputStream()!!.use {
|
||||||
ZipUtils.unZipToPath(it, Backup.backupPath)
|
ZipUtils.unZipToPath(it, Backup.backupPath)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user