|
|
@ -365,15 +365,12 @@ public class Emoji {
|
|
|
|
private final int index;
|
|
|
|
private final int index;
|
|
|
|
private final int page;
|
|
|
|
private final int page;
|
|
|
|
private final int emojiSize;
|
|
|
|
private final int emojiSize;
|
|
|
|
private static final Paint placeholderPaint;
|
|
|
|
|
|
|
|
private static final Paint paint;
|
|
|
|
private static final Paint paint;
|
|
|
|
private Bitmap bmp;
|
|
|
|
private Bitmap bmp;
|
|
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
static {
|
|
|
|
paint = new Paint();
|
|
|
|
paint = new Paint();
|
|
|
|
paint.setFilterBitmap(true);
|
|
|
|
paint.setFilterBitmap(true);
|
|
|
|
placeholderPaint = new Paint();
|
|
|
|
|
|
|
|
placeholderPaint.setColor(0x55000000);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public EmojiDrawable(DrawInfo info, int emojiSize) {
|
|
|
|
public EmojiDrawable(DrawInfo info, int emojiSize) {
|
|
|
@ -386,7 +383,6 @@ public class Emoji {
|
|
|
|
public void draw(Canvas canvas) {
|
|
|
|
public void draw(Canvas canvas) {
|
|
|
|
if (bitmaps[page] == null) {
|
|
|
|
if (bitmaps[page] == null) {
|
|
|
|
Log.w("Emoji", "bitmap for this page was null");
|
|
|
|
Log.w("Emoji", "bitmap for this page was null");
|
|
|
|
canvas.drawRect(getBounds(), placeholderPaint);
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (bmp == null) {
|
|
|
|
if (bmp == null) {
|
|
|
|