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(); } }