Search in sources :

Example 1 with KeyboardPagerViewModel

use of org.thoughtcrime.securesms.keyboard.KeyboardPagerViewModel in project Signal-Android by WhisperSystems.

the class ImageEditorStickerSelectActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.scribble_select_new_sticker_activity);
    KeyboardPagerViewModel keyboardPagerViewModel = ViewModelProviders.of(this).get(KeyboardPagerViewModel.class);
    keyboardPagerViewModel.setOnlyPage(KeyboardPage.STICKER);
    MediaKeyboard mediaKeyboard = findViewById(R.id.emoji_drawer);
    mediaKeyboard.show();
}
Also used : MediaKeyboard(org.thoughtcrime.securesms.components.emoji.MediaKeyboard) KeyboardPagerViewModel(org.thoughtcrime.securesms.keyboard.KeyboardPagerViewModel)

Aggregations

MediaKeyboard (org.thoughtcrime.securesms.components.emoji.MediaKeyboard)1 KeyboardPagerViewModel (org.thoughtcrime.securesms.keyboard.KeyboardPagerViewModel)1