try flushing the OutputStream at copying on an SD card
This commit is contained in:
parent
71e4a52bc5
commit
669efa300a
2 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.15.11'
|
||||
propVersionName = '5.15.13'
|
||||
kotlin_version = '1.3.41'
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue