Search in sources :

Example 1 with EmojiBottomSheetDialog

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();
}
Also used : EmojiBottomSheetDialog(com.waz.zclient.ui.colorpicker.EmojiBottomSheetDialog) EmojiSize(com.waz.zclient.ui.colorpicker.EmojiSize)

Aggregations

EmojiBottomSheetDialog (com.waz.zclient.ui.colorpicker.EmojiBottomSheetDialog)1 EmojiSize (com.waz.zclient.ui.colorpicker.EmojiSize)1