use of com.waz.zclient.ui.colorpicker.EmojiBottomSheetDialog in project wire-android by wireapp.
the class DrawingFragment method onEmojiClick.
public void onEmojiClick() {
final EmojiBottomSheetDialog dialog = new EmojiBottomSheetDialog(getContext(), currentEmojiSize, new EmojiBottomSheetDialog.EmojiDialogListener() {
@Override
public void onEmojiSelected(String emoji, EmojiSize emojiSize) {
actionButtonEmoji.setTextColor(getControllerFactory().getAccentColorController().getColor());
actionButtonSketch.setTextColor(defaultTextColor);
actionButtonText.setTextColor(defaultTextColor);
drawingCanvasView.setEmoji(emoji, emojiSize.getEmojiSize(getContext()));
currentEmojiSize = emojiSize;
getControllerFactory().getUserPreferencesController().addRecentEmoji(emoji);
}
}, getControllerFactory().getUserPreferencesController().getRecentEmojis(), getControllerFactory().getUserPreferencesController().getUnsupportedEmojis());
dialog.show();
}
Aggregations