Search in sources :

Example 1 with RealmRoomDraft

use of net.iGap.realm.RealmRoomDraft in project iGap-Android by KianIranian-STDG.

the class FragmentChat method getDraft.

private void getDraft() {
    RealmRoom realmRoom = getRoom();
    if (realmRoom != null) {
        RealmRoomDraft draft = realmRoom.getDraft();
        if (draft != null && draft.getMessage().length() > 0) {
            hasDraft = true;
            edtChat.setText(EmojiManager.getInstance().replaceEmoji(draft.getMessage(), edtChat.getPaint().getFontMetricsInt(), LayoutCreator.dp(22), false));
            edtChat.setSelection(edtChat.getText().toString().length());
        }
    }
// clearLocalDraft();
}
Also used : RealmRoomDraft(net.iGap.realm.RealmRoomDraft) RealmRoom(net.iGap.realm.RealmRoom)

Aggregations

RealmRoom (net.iGap.realm.RealmRoom)1 RealmRoomDraft (net.iGap.realm.RealmRoomDraft)1