mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
store copyMoveCallback a bit further at the process
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user