This commit is contained in:
kunfei committed 2023-03-12 19:50:14 +08:00
1 parent 684f1ac40f
commit 4af56b00f1
1 file changed
+1 -1
@@ -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 {