Merge pull request #2383 from KryptKode/fix/sdk30-saf-source-folder

sdk 30 changes
This commit is contained in:
Tibor Kaputa 2022-03-19 22:19:05 +01:00 committed by GitHub
commit 0d43373cb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,15 +249,11 @@ fun BaseSimpleActivity.tryCopyMoveFilesTo(fileDirItems: ArrayList<FileDirItem>,
PickDirectoryDialog(this, source, true, false) { PickDirectoryDialog(this, source, true, false) {
val destination = it val destination = it
handleSAFDialog(source) { handleSAFDialog(source) {
if (it) {
handleSAFDialogSdk30(fileDirItems[0].path){
if (it) { if (it) {
copyMoveFilesTo(fileDirItems, source.trimEnd('/'), destination, isCopyOperation, true, config.shouldShowHidden, callback) copyMoveFilesTo(fileDirItems, source.trimEnd('/'), destination, isCopyOperation, true, config.shouldShowHidden, callback)
} }
} }
} }
}
}
} }
fun BaseSimpleActivity.tryDeleteFileDirItem( fun BaseSimpleActivity.tryDeleteFileDirItem(