Skip to content
Snippets Groups Projects
Commit 08498268 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Remove image click on history cards

parent 7e9722e8
No related branches found
No related tags found
1 merge request!516Redesign
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment