From 8c043db2ce2978c96074976c360e2e385832f22a Mon Sep 17 00:00:00 2001 From: luvletter2333 Date: Fri, 2 Dec 2022 17:27:27 +0800 Subject: [PATCH] fix NPE in ChatMessageCell --- .../src/main/java/org/telegram/ui/Cells/ChatMessageCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java b/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java index d5df2951d..d80294daa 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java @@ -18039,7 +18039,7 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate lastForwardedNamesOffset = namesOffset; lastForwardNameWidth = forwardedNameWidth; lastBackgroundLeft = getCurrentBackgroundLeft(); - lastBackgroundRight = currentBackgroundDrawable.getBounds().right; + lastBackgroundRight = getCurrentBackgroundRight(); reactionsLayoutInBubble.recordDrawingState(); if (replyNameLayout != null) {