diff --git a/res/layout/conversation_activity.xml b/res/layout/conversation_activity.xml
index 6d10cae928..317ec17379 100644
--- a/res/layout/conversation_activity.xml
+++ b/res/layout/conversation_activity.xml
@@ -76,6 +76,7 @@
android:layout_height="fill_parent"
android:layout_gravity="center_vertical"
android:background="@drawable/touch_highlight_background"
+ android:contentDescription="@string/conversation_activity__emoji_toggle_description"
android:padding="10dp"/>
Send insecure MMS
Send
Remove
+ Conversation with %1$s
+ Message composition
+ Toggle emoji keyboard
Media message
Play button
- Secure message indicator
+ Secure message
Download
Downloading
- Send Failed Indicator
+ Send Failed
Pending Approval
- Delivered Indicator
+ Delivered
Download
+ Contact photo
Downloading
diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java
index 2a0530f99f..4b6a6c386c 100644
--- a/src/org/thoughtcrime/securesms/ConversationActivity.java
+++ b/src/org/thoughtcrime/securesms/ConversationActivity.java
@@ -625,6 +625,7 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
}
this.getSupportActionBar().setTitle(title);
+ getWindow().getDecorView().setContentDescription(getString(R.string.conversation_activity__window_description, title));
if (subtitle != null && !Util.isEmpty(subtitle))
this.getSupportActionBar().setSubtitle(PhoneNumberUtils.formatNumber(subtitle));
@@ -712,17 +713,17 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
if (isPushDestination) {
sendButton.setImageDrawable(drawables.getDrawable(0));
- setComposeTextHint(getString(R.string.conversation_activity__type_message_push));
+ setComposeHint(getString(R.string.conversation_activity__type_message_push));
} else if (isSecureDestination) {
sendButton.setImageDrawable(drawables.getDrawable(1));
- setComposeTextHint(attachmentManager.isAttachmentPresent() ?
- getString(R.string.conversation_activity__type_message_mms_secure) :
- getString(R.string.conversation_activity__type_message_sms_secure));
+ setComposeHint(attachmentManager.isAttachmentPresent() ?
+ getString(R.string.conversation_activity__type_message_mms_secure) :
+ getString(R.string.conversation_activity__type_message_sms_secure));
} else {
sendButton.setImageDrawable(drawables.getDrawable(2));
- setComposeTextHint((attachmentManager.isAttachmentPresent() || !recipients.isSingleRecipient()) ?
- getString(R.string.conversation_activity__type_message_mms_insecure) :
- getString(R.string.conversation_activity__type_message_sms_insecure));
+ setComposeHint((attachmentManager.isAttachmentPresent() || !recipients.isSingleRecipient()) ?
+ getString(R.string.conversation_activity__type_message_mms_insecure) :
+ getString(R.string.conversation_activity__type_message_sms_insecure));
}
drawables.recycle();
@@ -1210,13 +1211,14 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
this.composeText.setText(text);
}
- private void setComposeTextHint(String hint){
+ private void setComposeHint(String hint){
if (hint == null) {
this.composeText.setHint(null);
} else {
SpannableString span = new SpannableString(hint);
span.setSpan(new RelativeSizeSpan(0.8f), 0, hint.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
this.composeText.setHint(span);
+ this.sendButton.setContentDescription(hint);
}
}