From f4794baa2df46666f7497bc331c396f6e1840ac3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 6 Sep 2019 12:04:15 +0200 Subject: [PATCH] do not rescan paths after copying/moving --- 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 a10625d07..973538600 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '5.17.9' + propVersionName = '5.17.12' kotlin_version = '1.3.50' } 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 6e5aab2e0..0adf68bc6 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/asynctasks/CopyMoveTask.kt @@ -237,7 +237,7 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal copyOldLastModified(source.path, destination.path) File(destination.path).setLastModified(File(source.path).lastModified()) } - activity.scanPathRecursively(destination.path) + if (!copyOnly) { activity.deleteFromMediaStore(source.path) }