From 9e74b5c8921f4e683492e279d9c41f15300f43f1 Mon Sep 17 00:00:00 2001 From: Veeti Paananen Date: Thu, 31 Jul 2014 01:45:24 +0300 Subject: [PATCH] Remove gray placeholder squares while loading emoji --- src/org/thoughtcrime/securesms/util/Emoji.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/util/Emoji.java b/src/org/thoughtcrime/securesms/util/Emoji.java index 904821817e..fe8b1463d3 100644 --- a/src/org/thoughtcrime/securesms/util/Emoji.java +++ b/src/org/thoughtcrime/securesms/util/Emoji.java @@ -365,15 +365,12 @@ public class Emoji { private final int index; private final int page; private final int emojiSize; - private static final Paint placeholderPaint; private static final Paint paint; private Bitmap bmp; static { paint = new Paint(); paint.setFilterBitmap(true); - placeholderPaint = new Paint(); - placeholderPaint.setColor(0x55000000); } public EmojiDrawable(DrawInfo info, int emojiSize) { @@ -386,7 +383,6 @@ public class Emoji { public void draw(Canvas canvas) { if (bitmaps[page] == null) { Log.w("Emoji", "bitmap for this page was null"); - canvas.drawRect(getBounds(), placeholderPaint); return; } if (bmp == null) {