Search in sources :

Example 1 with MediaKeyboard

use of org.thoughtcrime.securesms.components.emoji.MediaKeyboard in project Signal-Android by signalapp.

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)

Example 2 with MediaKeyboard

use of org.thoughtcrime.securesms.components.emoji.MediaKeyboard 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)2 KeyboardPagerViewModel (org.thoughtcrime.securesms.keyboard.KeyboardPagerViewModel)2