Search in sources :

Example 1 with MessageOptionsDialogFragment

use of chat.rocket.android.fragment.chatroom.dialog.MessageOptionsDialogFragment in project Rocket.Chat.Android by RocketChat.

the class RoomFragment method onItemLongClick.

@Override
public boolean onItemLongClick(PairedMessage pairedMessage) {
    MessageOptionsDialogFragment messageOptionsDialogFragment = MessageOptionsDialogFragment.create(pairedMessage.target);
    messageOptionsDialogFragment.setOnMessageOptionSelectedListener(message -> {
        messageOptionsDialogFragment.dismiss();
        onEditMessage(message);
    });
    messageOptionsDialogFragment.show(getChildFragmentManager(), "MessageOptionsDialogFragment");
    return true;
}
Also used : MessageOptionsDialogFragment(chat.rocket.android.fragment.chatroom.dialog.MessageOptionsDialogFragment)

Aggregations

MessageOptionsDialogFragment (chat.rocket.android.fragment.chatroom.dialog.MessageOptionsDialogFragment)1