fix #1016, allow selecting multiple items at third party intents, when appropriate

This commit is contained in:
tibbi 2018-10-28 19:32:57 +01:00
parent 6eb2f60a55
commit 11b04aed43

View file

@ -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)