cf420de65f
1) Make recent list properly update and invalidate. 2) Show most-recently-used first. 3) Refactoring Closes #3171 // FREEBIE
26 lines
898 B
Java
26 lines
898 B
Java
package org.thoughtcrime.securesms.components.emoji;
|
|
|
|
import android.content.Context;
|
|
import android.support.v7.widget.AppCompatTextView;
|
|
import android.util.AttributeSet;
|
|
|
|
public class EmojiTextView extends AppCompatTextView {
|
|
public EmojiTextView(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public EmojiTextView(Context context, AttributeSet attrs) {
|
|
super(context, attrs);
|
|
}
|
|
|
|
public EmojiTextView(Context context, AttributeSet attrs, int defStyleAttr) {
|
|
super(context, attrs, defStyleAttr);
|
|
}
|
|
|
|
@Override public void setText(CharSequence text, BufferType type) {
|
|
super.setText(EmojiProvider.getInstance(getContext()).emojify(text,
|
|
EmojiProvider.EMOJI_SMALL,
|
|
new PostInvalidateCallback(this)),
|
|
BufferType.SPANNABLE);
|
|
}
|
|
}
|