check SAF dialog at OTG paths too at deleting
This commit is contained in:
parent
9f4461e9cb
commit
265ccea1f8
2 changed files with 2 additions and 4 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.7.20'
|
||||
propVersionName = '5.7.21'
|
||||
kotlin_version = '1.3.21'
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue