forked from mirror/monocles_chat_clean
fix NPE while getting activity (Christian Schneppe)
This commit is contained in:
parent
e2d7d88550
commit
b8e5405f47
1 changed files with 4 additions and 2 deletions
|
@ -999,8 +999,10 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
this.binding.textinput.setHint(R.string.you_are_not_participating);
|
||||
} else {
|
||||
this.binding.textInputHint.setVisibility(View.GONE);
|
||||
this.binding.textinput.setHint(UIHelper.getMessageHint(getActivity(), conversation));
|
||||
getActivity().invalidateOptionsMenu();
|
||||
if (getActivity() != null) {
|
||||
this.binding.textinput.setHint(UIHelper.getMessageHint(getActivity(), conversation));
|
||||
getActivity().invalidateOptionsMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue