mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
properly handle SAF dialog in case the source of a copy/move is on sd
This commit is contained in:
parent
3930f8ab6a
commit
212ede449b
@ -209,7 +209,12 @@ fun BaseSimpleActivity.tryCopyMoveFilesTo(fileDirItems: ArrayList<FileDirItem>,
|
|||||||
|
|
||||||
val source = fileDirItems[0].getParentPath()
|
val source = fileDirItems[0].getParentPath()
|
||||||
PickDirectoryDialog(this, source, true) {
|
PickDirectoryDialog(this, source, true) {
|
||||||
copyMoveFilesTo(fileDirItems, source.trimEnd('/'), it, isCopyOperation, true, config.shouldShowHidden, callback)
|
val destination = it
|
||||||
|
handleSAFDialog(source) {
|
||||||
|
if (it) {
|
||||||
|
copyMoveFilesTo(fileDirItems, source.trimEnd('/'), destination, isCopyOperation, true, config.shouldShowHidden, callback)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user