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();
}
Aggregations