mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-05-07 22:53:27 -04:00
fix threading at conflict resolution at decompressing
This commit is contained in:
@@ -545,9 +545,11 @@ class ItemsAdapter(
|
||||
}
|
||||
zipInputStream.closeEntry()
|
||||
val destinationPath = fileDirItems.first().getParentPath().trimEnd('/')
|
||||
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
|
||||
ensureBackgroundThread {
|
||||
decompressPaths(sourcePaths, it, callback)
|
||||
activity.runOnUiThread {
|
||||
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
|
||||
ensureBackgroundThread {
|
||||
decompressPaths(sourcePaths, it, callback)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (exception: Exception) {
|
||||
|
||||
Reference in New Issue
Block a user