make sure the file is on the sd card before trying the saf dialog

This commit is contained in:
tibbi 2017-03-15 23:39:03 +01:00
parent d28f0fe01b
commit 6bb03cda1a

View file

@ -168,7 +168,7 @@ fun BaseSimpleActivity.deleteFileBg(file: File, allowDeleteFolder: Boolean = fal
rescanDeletedFile(file) {
callback(true)
}
} else {
} else if (isPathOnSD(file.absolutePath)) {
handleSAFDialog(file) {
fileDeleted = tryFastDocumentDelete(file)
if (!fileDeleted) {