From 2b696273f293695156ae73aa0db229383a442a36 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 20 Jan 2024 19:21:29 +0800 Subject: [PATCH] fix: LiteMode FLAG_CHAT_SPOILER On Image --- .../telegram/ui/Components/spoilers/SpoilerEffect.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/spoilers/SpoilerEffect.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/spoilers/SpoilerEffect.java index 5530916e25..8e299c2faa 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/spoilers/SpoilerEffect.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/spoilers/SpoilerEffect.java @@ -425,10 +425,10 @@ public void draw(@NonNull Canvas canvas) { Paint shaderPaint = SpoilerEffectBitmapFactory.getInstance().getPaint(); shaderPaint.setColorFilter(new PorterDuffColorFilter(lastColor, PorterDuff.Mode.SRC_IN)); canvas.drawRect(getBounds().left, getBounds().top, getBounds().right, getBounds().bottom, SpoilerEffectBitmapFactory.getInstance().getPaint()); - if (LiteMode.isEnabled(LiteMode.FLAG_CHAT_SPOILER)) { - invalidateSelf(); - SpoilerEffectBitmapFactory.getInstance().checkUpdate(); - } + } + if (LiteMode.isEnabled(LiteMode.FLAG_CHAT_SPOILER)) { + invalidateSelf(); + SpoilerEffectBitmapFactory.getInstance().checkUpdate(); } }