Skip to content

Commit 52035a9

Browse files
committed
fix threading at conflict resolution at decompressing
1 parent 227f30c commit 52035a9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,11 @@ class ItemsAdapter(
545545
}
546546
zipInputStream.closeEntry()
547547
val destinationPath = fileDirItems.first().getParentPath().trimEnd('/')
548-
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
549-
ensureBackgroundThread {
550-
decompressPaths(sourcePaths, it, callback)
548+
activity.runOnUiThread {
549+
activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
550+
ensureBackgroundThread {
551+
decompressPaths(sourcePaths, it, callback)
552+
}
551553
}
552554
}
553555
} catch (exception: Exception) {

0 commit comments

Comments
 (0)