forked from mirror/monocles_chat
Fix NPE
(cherry picked from commit 3e6c3889410bac71a698efe9bf78d61a655b0b23)
This commit is contained in:
parent
65a8e01045
commit
b4624b7203
1 changed files with 2 additions and 1 deletions
|
@ -1210,7 +1210,8 @@ public class ConversationFragment extends XmppFragment
|
|||
this.binding.inputLayout.setBackgroundColor(android.R.color.transparent);
|
||||
} else {
|
||||
this.binding.textInputHint.setVisibility(View.GONE);
|
||||
if (activity != null) this.binding.textinput.setHint(UIHelper.getMessageHint(activity, conversation));
|
||||
if (activity == null) return;
|
||||
this.binding.textinput.setHint(UIHelper.getMessageHint(activity, conversation));
|
||||
this.binding.inputLayout.setBackground(activity.getDrawable(R.drawable.background_message_bubble));
|
||||
activity.invalidateOptionsMenu();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue