Skip to content

Commit

Permalink
Merge pull request #2052 from jsoberg/js/1861/make-like-message-tap-t…
Browse files Browse the repository at this point in the history
…arget-larger

Fixes #1861: Make the entire like layout clickable vs just the text
  • Loading branch information
Hafizzle authored Dec 17, 2023
2 parents cc5cd88 + 8020be9 commit 782965e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Habitica/res/layout/chat_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,18 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="5dp"
android:clickable="true"
android:focusable="true"
android:background="@drawable/layout_rounded_bg">

<TextView
android:id="@+id/tvLikes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:clickable="true"
android:gravity="center_vertical"
android:focusable="true" />
android:clickable="false"
android:focusable="false"
android:gravity="center_vertical" />
</LinearLayout>
</LinearLayout>
<TextView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ChatRecyclerMessageViewHolder(
itemView.setOnClickListener {
onShouldExpand?.invoke()
}
binding.tvLikes.setOnClickListener {
binding.likeBackgroundLayout.setOnClickListener {
chatMessage?.let {
if (it.uuid != userId) {
onLikeMessage?.invoke(it)
Expand Down

0 comments on commit 782965e

Please sign in to comment.