diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-18 19:38:58 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-18 19:38:58 +0200 |
commit | 546f71490ca64b8979d3e645af5cc83f3a5d02fa (patch) | |
tree | 5d61c8b9554c3dd43f92843d56b2a037a82e4c3f /src/main/java/de/pixart | |
parent | e2f3c3a3c0baa38d106443cb84e5ca25f43c1902 (diff) |
Add content description to send button
This can be used by screen readers and other accessibility aids.
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 5976bde02..11e81bfc6 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -925,6 +925,10 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa updateChatState(this.conversation, msg); } 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)); + } this.conversation = conversation; |