Skip to content

Commit

Permalink
fixed crashes
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Nov 13, 2023
1 parent 21b7264 commit 5b54dea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void onBind(@NonNull ChatMessage message) {
) {
Spanned processedMessageText = null;
binding.incomingPreviewMessageBubble.setBackgroundResource(R.drawable.shape_grouped_incoming_message);
binding.incomingPreviewMessageBubble.setOnClickListener(null);
if (viewThemeUtils != null ) {
processedMessageText = messageUtils.enrichChatMessageText(
binding.messageCaption.getContext(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void onBind(@NonNull ChatMessage message) {
) {
Spanned processedMessageText = null;
binding.outgoingPreviewMessageBubble.setBackgroundResource(R.drawable.shape_grouped_outcoming_message);
binding.outgoingPreviewMessageBubble.setOnClickListener(null);
if (viewThemeUtils != null) {
processedMessageText = messageUtils.enrichChatMessageText(
binding.messageCaption.getContext(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) :
}
}
}

messageCaption.setOnClickListener(null)
}

private fun longClickOnReaction(chatMessage: ChatMessage) {
Expand Down

0 comments on commit 5b54dea

Please sign in to comment.