store copyMoveCallback a bit further at the process

This commit is contained in:
tibbi 2017-04-01 18:12:51 +02:00
parent a963a13fc7
commit aefa630c1a

View file

@ -24,7 +24,6 @@ open class SimpleActivity : BaseSimpleActivity() {
return return
} }
copyMoveCallback = callback
val source = if (files[0].isFile) files[0].parent.trimEnd('/') else files[0].absolutePath val source = if (files[0].isFile) files[0].parent.trimEnd('/') else files[0].absolutePath
val currPath = source.trimEnd('/') val currPath = source.trimEnd('/')
PickAlbumDialog(this, currPath) { PickAlbumDialog(this, currPath) {
@ -47,6 +46,7 @@ open class SimpleActivity : BaseSimpleActivity() {
} }
handleSAFDialog(destinationFolder) { handleSAFDialog(destinationFolder) {
copyMoveCallback = callback
if (isCopyOperation) { if (isCopyOperation) {
toast(R.string.copying) toast(R.string.copying)
val pair = Pair<ArrayList<File>, File>(files, destinationFolder) val pair = Pair<ArrayList<File>, File>(files, destinationFolder)