Skip to content

Commit

Permalink
bugfix: corrected click position in SavedChatsAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
DevEmperor committed Feb 6, 2024
1 parent 018562a commit 9982f98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ public void onBindViewHolder(RecyclerViewHolder holder, final int position) {

holder.savedChatContainer.setOnClickListener(v -> {
if (callback != null) {
callback.onItemClicked(position, false);
callback.onItemClicked(holder.getAdapterPosition(), false);
}
});
holder.savedChatContainer.setOnLongClickListener(v -> {
if (callback != null) {
callback.onItemClicked(position, true);
callback.onItemClicked(holder.getAdapterPosition(), true);
}
return true;
});
Expand Down

0 comments on commit 9982f98

Please sign in to comment.