mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-01 12:06:43 +01:00
fix #1016, allow selecting multiple items at third party intents, when appropriate
This commit is contained in:
parent
6eb2f60a55
commit
11b04aed43
@ -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…
x
Reference in New Issue
Block a user