mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-19 21:30:37 +01:00
fix threading at conflict resolution at decompressing
This commit is contained in:
parent
227f30c959
commit
52035a920a
@ -545,11 +545,13 @@ class ItemsAdapter(
|
|||||||
}
|
}
|
||||||
zipInputStream.closeEntry()
|
zipInputStream.closeEntry()
|
||||||
val destinationPath = fileDirItems.first().getParentPath().trimEnd('/')
|
val destinationPath = fileDirItems.first().getParentPath().trimEnd('/')
|
||||||
|
activity.runOnUiThread {
|
||||||
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
|
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
decompressPaths(sourcePaths, it, callback)
|
decompressPaths(sourcePaths, it, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (exception: Exception) {
|
} catch (exception: Exception) {
|
||||||
activity.showErrorToast(exception)
|
activity.showErrorToast(exception)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user