Skip to content

Commit

Permalink
Show popup menu on long press
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyster committed Jan 11, 2023
1 parent 00092fb commit 5264123
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/juick/android/screens/FeedAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ class FeedAdapter : ListAdapter<Post, FeedAdapter.PostViewHolder>(DIFF_CALLBACK)
holder.menuImageView.setOnClickListener {
itemMenuListener?.onItemClick(it, post)
}
holder.itemView.setOnLongClickListener {
itemMenuListener?.onItemClick(it, post)
true
}
holder.textTextView.setOnLongClickListener {
itemMenuListener?.onItemClick(it, post)
true
}
holder.itemView.setOnClickListener {
itemClickListener?.invoke(it, position)
}
Expand Down

0 comments on commit 5264123

Please sign in to comment.