From 2fe91e59ed9958e8bb5cd187c0e2914e8f1c9ad9 Mon Sep 17 00:00:00 2001
From: Ralf Gehrer <ralfgehrer@users.noreply.github.com>
Date: Wed, 16 Dec 2020 14:31:30 +0100
Subject: [PATCH] Add content description texts (EXPOSUREAPP-4303) (#1914)

---
 .../layout/contact_diary_homescreen_card_include.xml   |  1 +
 .../res/layout/contact_diary_onboarding_fragment.xml   |  2 +-
 .../src/main/res/values-de/contact_diary_strings.xml   | 10 ++++++++++
 .../src/main/res/values/contact_diary_strings.xml      |  9 +++++++++
 4 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/Corona-Warn-App/src/main/res/layout/contact_diary_homescreen_card_include.xml b/Corona-Warn-App/src/main/res/layout/contact_diary_homescreen_card_include.xml
index 378c93cc2..858c66976 100644
--- a/Corona-Warn-App/src/main/res/layout/contact_diary_homescreen_card_include.xml
+++ b/Corona-Warn-App/src/main/res/layout/contact_diary_homescreen_card_include.xml
@@ -60,6 +60,7 @@
             android:layout_height="wrap_content"
             android:layout_marginEnd="@dimen/spacing_normal"
             android:importantForAccessibility="no"
+            android:contentDescription="@string/contact_diary_homescreen_card_image_content_description"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintTop_toTopOf="@+id/contact_diary_card_homescreen_body"
             app:srcCompat="@drawable/ic_diary_book" />
diff --git a/Corona-Warn-App/src/main/res/layout/contact_diary_onboarding_fragment.xml b/Corona-Warn-App/src/main/res/layout/contact_diary_onboarding_fragment.xml
index 369e126dd..873f4afd3 100644
--- a/Corona-Warn-App/src/main/res/layout/contact_diary_onboarding_fragment.xml
+++ b/Corona-Warn-App/src/main/res/layout/contact_diary_onboarding_fragment.xml
@@ -38,10 +38,10 @@
                     android:layout_height="wrap_content"
                     android:focusable="true"
                     android:src="@drawable/ic_contact_diary_illustration_onboarding"
+                    android:contentDescription="@string/contact_diary_onboarding_image_content_description"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintStart_toStartOf="parent"
                     app:layout_constraintTop_toTopOf="parent"
-                    tools:ignore="ContentDescription"
                     tools:src="@drawable/ic_contact_diary_illustration_onboarding" />
 
                 <TextView
diff --git a/Corona-Warn-App/src/main/res/values-de/contact_diary_strings.xml b/Corona-Warn-App/src/main/res/values-de/contact_diary_strings.xml
index 9e9ab9412..315c008a1 100644
--- a/Corona-Warn-App/src/main/res/values-de/contact_diary_strings.xml
+++ b/Corona-Warn-App/src/main/res/values-de/contact_diary_strings.xml
@@ -62,6 +62,16 @@
     <!-- XTXT: Header for contact diary overview screen -->
     <string name="contact_diary_overview_header">Startseite</string>
 
+    <!-- XTXT: content description of contact journal image on home screen -->
+    <string name="contact_diary_homescreen_card_image_content_description">Ein zugeklapptes Buch mit Lesezeichen</string>
+    <!-- XTXT: content description of contact journal header image on onboarding screen -->
+    <string name="contact_diary_onboarding_image_content_description">Mehrere Menschen schauen im Freien auf ihre Handys</string>
+    <!-- XTXT: content description of contact journal background image on edit persons screen -->
+    <string name="contact_diary_edit_persons_image_content_description">Die Silhouette einer Frau, die über eine Wiese läuft</string>
+    <!-- XTXT: content description of contact journal background image on edit locations screen -->
+    <string name="contact_diary_edit_locations_image_content_description">Eine Standortmarkierung markiert ein Gebäude</string>
+
+
     <!-- XHED: Title for the contact diary edit locations -->
     <string name="contact_diary_edit_locations_title">Orte bearbeiten</string>
     <!-- XHED: Title for the contact diary edit persons -->
diff --git a/Corona-Warn-App/src/main/res/values/contact_diary_strings.xml b/Corona-Warn-App/src/main/res/values/contact_diary_strings.xml
index 836d1fe87..7a8625382 100644
--- a/Corona-Warn-App/src/main/res/values/contact_diary_strings.xml
+++ b/Corona-Warn-App/src/main/res/values/contact_diary_strings.xml
@@ -61,6 +61,15 @@
     <!-- XTXT: Header for contact diary overview screen -->
     <string name="contact_diary_overview_header"/>
 
+    <!-- XTXT: content description of contact journal image on home screen -->
+    <string name="contact_diary_homescreen_card_image_content_description">Ein zugeklapptes Buch mit Lesezeichen</string>
+    <!-- XTXT: content description of contact journal header image on onboarding screen -->
+    <string name="contact_diary_onboarding_image_content_description">Mehrere Menschen schauen im Freien auf ihre Handys</string>
+    <!-- XTXT: content description of contact journal background image on edit persons screen -->
+    <string name="contact_diary_edit_persons_image_content_description">Die Silhouette einer Frau, die über eine Wiese läuft</string>
+    <!-- XTXT: content description of contact journal background image on edit locations screen -->
+    <string name="contact_diary_edit_locations_image_content_description">Eine Standortmarkierung markiert ein Gebäude</string>
+
     <!-- XHED: Title for the contact diary edit locations -->
     <string name="contact_diary_edit_locations_title">Orte bearbeiten</string>
     <!-- XHED: Title for the contact diary edit persons -->
-- 
GitLab