mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
Add content description to send button
This can be used by screen readers and other accessibility aids.
This commit is contained in:
parent
6c34763d32
commit
4a915c60e9
@ -891,6 +891,9 @@ 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));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.conversation = conversation;
|
this.conversation = conversation;
|
||||||
|
@ -57,7 +57,8 @@
|
|||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:background="?attr/color_background_primary"
|
android:background="?attr/color_background_primary"
|
||||||
android:src="?attr/ic_send_text_offline" />
|
android:src="?attr/ic_send_text_offline"
|
||||||
|
android:contentDescription="@string/send_message"/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -81,6 +81,7 @@
|
|||||||
<string name="also_end_conversation">End this conversation afterwards</string>
|
<string name="also_end_conversation">End this conversation afterwards</string>
|
||||||
<string name="choose_presence">Choose device</string>
|
<string name="choose_presence">Choose device</string>
|
||||||
<string name="send_unencrypted_message">Send unencrypted message</string>
|
<string name="send_unencrypted_message">Send unencrypted message</string>
|
||||||
|
<string name="send_message">Send message</string>
|
||||||
<string name="send_message_to_x">Send message to %s</string>
|
<string name="send_message_to_x">Send message to %s</string>
|
||||||
<string name="send_otr_message">Send OTR encrypted message</string>
|
<string name="send_otr_message">Send OTR encrypted message</string>
|
||||||
<string name="send_omemo_message">Send OMEMO encrypted message</string>
|
<string name="send_omemo_message">Send OMEMO encrypted message</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user