check if activity is not null before using it to paint send button
This commit is contained in:
parent
7ec8f7952f
commit
4f0214b477
|
@ -2284,7 +2284,10 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
status = Presence.Status.OFFLINE;
|
||||
}
|
||||
this.binding.textSendButton.setTag(action);
|
||||
this.binding.textSendButton.setImageResource(SendButtonTool.getSendButtonImageResource(getActivity(), action, status));
|
||||
final Activity activity = getActivity();
|
||||
if (activity != null) {
|
||||
this.binding.textSendButton.setImageResource(SendButtonTool.getSendButtonImageResource(activity, action, status));
|
||||
}
|
||||
}
|
||||
|
||||
protected void updateStatusMessages() {
|
||||
|
|
Loading…
Reference in New Issue