fix threading at conflict resolution at decompressing

This commit is contained in:
tibbi 2023-01-18 22:13:43 +01:00
parent 227f30c959
commit 52035a920a

View File

@ -545,9 +545,11 @@ class ItemsAdapter(
} }
zipInputStream.closeEntry() zipInputStream.closeEntry()
val destinationPath = fileDirItems.first().getParentPath().trimEnd('/') val destinationPath = fileDirItems.first().getParentPath().trimEnd('/')
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) { activity.runOnUiThread {
ensureBackgroundThread { activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
decompressPaths(sourcePaths, it, callback) ensureBackgroundThread {
decompressPaths(sourcePaths, it, callback)
}
} }
} }
} catch (exception: Exception) { } catch (exception: Exception) {