check SAF dialog at OTG paths too at deleting

This commit is contained in:
tibbi 2019-02-16 00:07:31 +01:00
parent 9f4461e9cb
commit 265ccea1f8
2 changed files with 2 additions and 4 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.7.20'
propVersionName = '5.7.21'
kotlin_version = '1.3.21'
}

View file

@ -491,12 +491,10 @@ fun BaseSimpleActivity.deleteFileBg(fileDirItem: FileDirItem, allowDeleteFolder:
}
if (!fileDeleted) {
if (isPathOnSD(path)) {
if (isPathOnSD(path) || isPathOnOTG(path)) {
handleSAFDialog(path) {
trySAFFileDelete(fileDirItem, allowDeleteFolder, callback)
}
} else if (isPathOnOTG(path)) {
trySAFFileDelete(fileDirItem, allowDeleteFolder, callback)
}
}
}