mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -37,7 +37,7 @@ object Restore {
|
||||
kotlin.runCatching {
|
||||
FileUtils.delete(Backup.backupPath)
|
||||
if (uri.isContentScheme()) {
|
||||
DocumentFile.fromTreeUri(context, uri)?.openInputStream()!!.use {
|
||||
DocumentFile.fromSingleUri(context, uri)!!.openInputStream()!!.use {
|
||||
ZipUtils.unZipToPath(it, Backup.backupPath)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user