Commit 08498268 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Remove image click on history cards

parent 7e9722e8
......@@ -75,7 +75,10 @@ class HistoryAdapter(private val inCards: Boolean = false) : DiffUtilAdapter<Med
fun onLongClick(v: View) = eventsChannel.safeOffer(LongClick(layoutPosition))
fun onImageClick(v: View) {
eventsChannel.safeOffer(ImageClick(layoutPosition))
if (inCards)
eventsChannel.safeOffer(SimpleClick(layoutPosition))
else
eventsChannel.safeOffer(ImageClick(layoutPosition))
}
override fun isSelected() = getItem(layoutPosition).hasStateFlags(MediaLibraryItem.FLAG_SELECTED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment