From efe3998b43ce20b56fdffff0031c2b2bf65b31fb Mon Sep 17 00:00:00 2001 From: axelherbstreith <75120552+axelherbstreith@users.noreply.github.com> Date: Fri, 5 Feb 2021 11:20:47 +0100 Subject: [PATCH] Accessibility: Image not announces in Submission Consent Screen (EXPOSUREAPP-4098) #2289 * added content description * added translations Co-authored-by: Ralf Gehrer <ralfgehrer@users.noreply.github.com> --- .../src/main/res/layout/fragment_submission_consent.xml | 3 ++- Corona-Warn-App/src/main/res/values-de/strings.xml | 2 ++ Corona-Warn-App/src/main/res/values/strings.xml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Corona-Warn-App/src/main/res/layout/fragment_submission_consent.xml b/Corona-Warn-App/src/main/res/layout/fragment_submission_consent.xml index 43d97e3dd..7247a9c38 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_submission_consent.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_submission_consent.xml @@ -50,7 +50,8 @@ app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" - android:importantForAccessibility="no"/> + android:focusable="true" + android:contentDescription="@string/submission_consent_main_illustration_description" /> <include layout="@layout/include_submission_consent_intro" android:id="@+id/include_submission_consent_intro" diff --git a/Corona-Warn-App/src/main/res/values-de/strings.xml b/Corona-Warn-App/src/main/res/values-de/strings.xml index 2db38c318..676b83292 100644 --- a/Corona-Warn-App/src/main/res/values-de/strings.xml +++ b/Corona-Warn-App/src/main/res/values-de/strings.xml @@ -903,6 +903,8 @@ <string name="submission_consent_main_third_point">"Ihre Identität bleibt geheim. Andere Nutzer erfahren nicht, wer sein Testergebnis geteilt hat."</string> <!-- YTXT: Body for consent main section fourth point --> <string name="submission_consent_main_fourth_point">"Sie können Ihr Einverständnis abgeben, wenn Sie mindestens 16 Jahre alt sind."</string> + <!-- YTXT: Content Description for the illustration --> + <string name="submission_consent_main_illustration_description">"Eine Person hält ein Smartphone. Ein QR-Code auf einem Test symbolisiert den zu scannenden Code."</string> <!-- Submission Test Result --> <!-- XHED: Page headline for test result --> diff --git a/Corona-Warn-App/src/main/res/values/strings.xml b/Corona-Warn-App/src/main/res/values/strings.xml index 9a8e97ba9..68215cbbd 100644 --- a/Corona-Warn-App/src/main/res/values/strings.xml +++ b/Corona-Warn-App/src/main/res/values/strings.xml @@ -916,6 +916,8 @@ <string name="submission_consent_main_third_point">"Your identity will remain secret. Other users will not find out who has shared a test result."</string> <!-- YTXT: Body for consent main section fourth point --> <string name="submission_consent_main_fourth_point">"You must be at least 16 years old to grant your consent."</string> + <!-- YTXT: Content Description for the illustration --> + <string name="submission_consent_main_illustration_description"></string> <!-- Submission Test Result --> <!-- XHED: Page headline for test result --> -- GitLab