mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
improve the SAF file path selection
This commit is contained in:
parent
552cb2ec5f
commit
c05cad57d5
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
|
|||
return
|
||||
}
|
||||
|
||||
val SAFPath = getFirstSelectedItemPath() ?: return
|
||||
val SAFPath = getSelectedPaths().firstOrNull { activity.isPathOnSD(it) } ?: getFirstSelectedItemPath() ?: return
|
||||
activity.handleSAFDialog(SAFPath) {
|
||||
val fileDirItems = ArrayList<FileDirItem>(selectedKeys.size)
|
||||
val removeMedia = ArrayList<Medium>(selectedKeys.size)
|
||||
|
|
Loading…
Reference in a new issue