From aefa630c1a79f82033b02602a32432529b3086a5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 1 Apr 2017 18:12:51 +0200 Subject: [PATCH] store copyMoveCallback a bit further at the process --- .../com/simplemobiletools/gallery/activities/SimpleActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt index 1fa335065..556e7f36c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt @@ -24,7 +24,6 @@ open class SimpleActivity : BaseSimpleActivity() { return } - copyMoveCallback = callback val source = if (files[0].isFile) files[0].parent.trimEnd('/') else files[0].absolutePath val currPath = source.trimEnd('/') PickAlbumDialog(this, currPath) { @@ -47,6 +46,7 @@ open class SimpleActivity : BaseSimpleActivity() { } handleSAFDialog(destinationFolder) { + copyMoveCallback = callback if (isCopyOperation) { toast(R.string.copying) val pair = Pair, File>(files, destinationFolder)