sdk 30 changes

- remove handleSAFDialogSdk30 for source paths since we have READ permission
This commit is contained in:
darthpaul 2022-03-19 19:49:16 +00:00
parent 4a3e502484
commit fa991847fb

View file

@ -249,16 +249,12 @@ 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(
fileDirItem: FileDirItem, allowDeleteFolder: Boolean = false, deleteFromDatabase: Boolean, fileDirItem: FileDirItem, allowDeleteFolder: Boolean = false, deleteFromDatabase: Boolean,