mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
fix #1016, allow selecting multiple items at third party intents, when appropriate
This commit is contained in:
parent
6eb2f60a55
commit
11b04aed43
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
|
||||||
visibleItemPaths.add(tmbItem.path)
|
visibleItemPaths.add(tmbItem.path)
|
||||||
}
|
}
|
||||||
|
|
||||||
val allowLongPress = !allowMultiplePicks && tmbItem is Medium
|
val allowLongPress = (!isAGetIntent || allowMultiplePicks) && tmbItem is Medium
|
||||||
holder.bindView(tmbItem, tmbItem is Medium, allowLongPress) { itemView, adapterPosition ->
|
holder.bindView(tmbItem, tmbItem is Medium, allowLongPress) { itemView, adapterPosition ->
|
||||||
if (tmbItem is Medium) {
|
if (tmbItem is Medium) {
|
||||||
setupThumbnail(itemView, tmbItem)
|
setupThumbnail(itemView, tmbItem)
|
||||||
|
|
Loading…
Reference in a new issue