Skip to content

Commit

Permalink
fix: LiteMode FLAG_CHAT_SPOILER On Image
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jan 20, 2024
1 parent 0ef77d2 commit 2b69627
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 2b69627

Please sign in to comment.