22 lines
474 B
Java
22 lines
474 B
Java
package eu.siacs.conversations.ui.service;
|
|
|
|
import android.content.Context;
|
|
import android.support.text.emoji.EmojiCompat;
|
|
|
|
public abstract class AbstractEmojiService {
|
|
|
|
protected final Context context;
|
|
|
|
public AbstractEmojiService(Context context) {
|
|
this.context = context;
|
|
}
|
|
|
|
protected abstract EmojiCompat.Config buildConfig();
|
|
|
|
public void init() {
|
|
final EmojiCompat.Config config = buildConfig();
|
|
config.setReplaceAll(true);
|
|
EmojiCompat.init(config);
|
|
}
|
|
}
|