fix copying multiple items

This commit is contained in:
tibbi 2016-11-05 23:35:01 +01:00
parent ac1991c887
commit 60a8f1f054
1 changed files with 2 additions and 3 deletions

View File

@ -24,13 +24,12 @@ class CopyTask(listener: CopyTask.CopyListener, val context: Context) : AsyncTas
try {
destinationDir = File(pair.second, file.name)
copy(file, destinationDir!!)
return true
} catch (e: Exception) {
Log.e(TAG, "copy " + e)
return false
}
}
return false
return true
}
@Throws(Exception::class)