From 64c5e23bf829852a782595f90801dfb62f589546 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 28 May 2017 23:55:10 +0200 Subject: [PATCH] tolerate 1 mb size difference at source and destination at Move check --- build.gradle | 2 +- .../com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index b3bd7170a..4efef1d21 100644 --- a/build.gradle +++ b/build.gradle @@ -29,5 +29,5 @@ ext { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '2.18.7' + propVersionName = '2.18.8' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt index 942c71082..9ae1b879b 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt @@ -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) }