From bca854c8af202b4b79626ac67dad3dc6787d73e9 Mon Sep 17 00:00:00 2001 From: luvletter2333 Date: Wed, 27 Jul 2022 18:18:52 +0800 Subject: [PATCH] debug: getThemedDrawable failed for currentBackgroundDrawable --- .../main/java/org/telegram/ui/Cells/ChatMessageCell.java | 7 ++++++- 1 file changed, 6 insertions(+), 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 0c915e1a5..92c51602d 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java @@ -16623,7 +16623,12 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate private Drawable getThemedDrawable(String key) { Drawable drawable = resourcesProvider != null ? resourcesProvider.getDrawable(key) : null; - return drawable != null ? drawable : Theme.getThemeDrawable(key); + final Drawable ret = drawable != null ? drawable : Theme.getThemeDrawable(key); + if (ret == null) { + FileLog.e("getThemedDrawable failed with key:" + key); + FileLog.e(new Exception()); + } + return ret; } private Paint getThemedPaint(String paintKey) {