Skip to content

Commit 60a8f1f

Browse files
committed
fix copying multiple items
1 parent ac1991c commit 60a8f1f

File tree

1 file changed

+2
-3
lines changed
  • app/src/main/java/com/simplemobiletools/filemanager/asynctasks

1 file changed

+2
-3
lines changed

app/src/main/java/com/simplemobiletools/filemanager/asynctasks/CopyTask.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ class CopyTask(listener: CopyTask.CopyListener, val context: Context) : AsyncTas
2424
try {
2525
destinationDir = File(pair.second, file.name)
2626
copy(file, destinationDir!!)
27-
return true
2827
} catch (e: Exception) {
2928
Log.e(TAG, "copy " + e)
29+
return false
3030
}
31-
3231
}
33-
return false
32+
return true
3433
}
3534

3635
@Throws(Exception::class)

0 commit comments

Comments
 (0)