try flushing the OutputStream at copying on an SD card

This commit is contained in:
tibbi 2019-07-28 22:18:20 +02:00
parent 71e4a52bc5
commit 669efa300a
2 changed files with 3 additions and 1 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.15.11'
propVersionName = '5.15.13'
kotlin_version = '1.3.41'
}

View file

@ -229,6 +229,8 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal
bytes = inputStream.read(buffer)
}
out?.flush()
if (source.size == copiedSize && File(destination.path).exists()) {
mTransferredFiles.add(source)
if (activity.baseConfig.keepLastModified) {