mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
parent
12b8eee86f
commit
4f75ea0fd0
@ -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…
Reference in New Issue
Block a user