aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java4
-rw-r--r--src/main/res/layout/fragment_conversation.xml3
-rw-r--r--src/main/res/values-de/strings.xml1
-rw-r--r--src/main/res/values/strings.xml1
4 files changed, 8 insertions, 1 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;
diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml
index 23d7c050d..5de574fb7 100644
--- a/src/main/res/layout/fragment_conversation.xml
+++ b/src/main/res/layout/fragment_conversation.xml
@@ -63,7 +63,8 @@
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@color/grey200"
- android:src="@drawable/ic_send_text_offline" />
+ android:src="@drawable/ic_send_text_offline"
+ android:contentDescription="@string/send_message" />
</RelativeLayout>
<RelativeLayout
diff --git a/src/main/res/values-de/strings.xml b/src/main/res/values-de/strings.xml
index b996a29c6..42dfe0d80 100644
--- a/src/main/res/values-de/strings.xml
+++ b/src/main/res/values-de/strings.xml
@@ -722,5 +722,6 @@
<string name="last_seen_just_away">kürzlich</string>
<string name="pref_use_colored_names_to_indicate_status">Kontaktnamen-Farbe zeigt Online-Status an</string>
<string name="pref_use_colored_names_to_indicate_status_summary">Kontaktnamen einfärben, um den Online-Status des Kontakts anzuzeigen</string>
+ <string name="send_message">Nachricht senden</string>
</resources>
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 07db5f20f..f91bb9c94 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -770,4 +770,5 @@
<string name="image_mid">middle (1920p)</string>
<string name="image_high">high (3840p)</string>
<string name="last_seen_just_away">recently</string>
+ <string name="send_message">Send message</string>
</resources>