mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
make sure context is not null before setting content description on send button
This commit is contained in:
parent
c837e0616a
commit
848c339c8d
@ -903,9 +903,11 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
updateChatState(this.conversation, msg);
|
updateChatState(this.conversation, msg);
|
||||||
}
|
}
|
||||||
this.conversation.trim();
|
this.conversation.trim();
|
||||||
this.mSendButton.setContentDescription(this.getActivity().getApplicationContext().getString(R.string.send_message_to_x,conversation.getName()));
|
|
||||||
} else {
|
}
|
||||||
this.mSendButton.setContentDescription(this.getActivity().getApplicationContext().getString(R.string.send_message));
|
|
||||||
|
if (activity != null) {
|
||||||
|
this.mSendButton.setContentDescription(activity.getString(R.string.send_message_to_x,conversation.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.conversation = conversation;
|
this.conversation = conversation;
|
||||||
|
Loading…
Reference in New Issue
Block a user