parent
12b8eee86f
commit
4f75ea0fd0
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package org.thoughtcrime.securesms.components.emoji;
|
||||
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Paint.FontMetricsInt;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.support.annotation.NonNull;
|
||||
|
@ -15,4 +16,10 @@ public class EmojiSpan extends AnimatingImageSpan {
|
|||
: tv.getResources().getDimensionPixelSize(R.dimen.conversation_item_body_text_size);
|
||||
getDrawable().setBounds(0, 0, size, size);
|
||||
}
|
||||
|
||||
@Override public int getSize(Paint paint, CharSequence text, int start, int end,
|
||||
FontMetricsInt fm)
|
||||
{
|
||||
return getDrawable().getBounds().right;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue