tolerate 1 mb size difference at source and destination at Move check

This commit is contained in:
tibbi 2017-05-28 23:55:10 +02:00
parent ad819c856a
commit 64c5e23bf8
2 changed files with 2 additions and 2 deletions

View file

@ -29,5 +29,5 @@ ext {
propMinSdkVersion = 16
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '2.18.7'
propVersionName = '2.18.8'
}

View file

@ -108,7 +108,7 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal
inputStream.copyTo(out!!)
activity.scanFile(destination) {}
if (source.hashCode() == destination.hashCode())
if (source.length() / 1000000 == destination.length() / 1000000)
mMovedFiles.add(source)
}