From fb54cadffcceeeec12ac7785569e6b4d752c6178 Mon Sep 17 00:00:00 2001 From: Kenneth Ford Date: Wed, 7 Dec 2022 22:06:43 +0000 Subject: [PATCH] Adds content descriptions for rear display animation Bug: 257345938 Test: Manual with talkback Change-Id: I4a8c7d73d8e058656a937084913bcb5839f9d987 --- .../SystemUI/res/layout/activity_rear_display_education.xml | 2 +- .../res/layout/activity_rear_display_education_opened.xml | 2 +- packages/SystemUI/res/values/strings.xml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/layout/activity_rear_display_education.xml b/packages/SystemUI/res/layout/activity_rear_display_education.xml index 73d3f0236ffff..f5fc48c70003a 100644 --- a/packages/SystemUI/res/layout/activity_rear_display_education.xml +++ b/packages/SystemUI/res/layout/activity_rear_display_education.xml @@ -33,7 +33,7 @@ android:layout_width="@dimen/rear_display_animation_width" android:layout_height="@dimen/rear_display_animation_height" android:layout_gravity="center" - android:contentDescription="@null" + android:contentDescription="@string/rear_display_accessibility_folded_animation" android:scaleType="fitXY" app:lottie_rawRes="@raw/rear_display_folded" app:lottie_autoPlay="true" diff --git a/packages/SystemUI/res/layout/activity_rear_display_education_opened.xml b/packages/SystemUI/res/layout/activity_rear_display_education_opened.xml index 20b93d9bc40df..6de06f76ebbf6 100644 --- a/packages/SystemUI/res/layout/activity_rear_display_education_opened.xml +++ b/packages/SystemUI/res/layout/activity_rear_display_education_opened.xml @@ -34,7 +34,7 @@ android:layout_width="@dimen/rear_display_animation_width" android:layout_height="@dimen/rear_display_animation_height" android:layout_gravity="center" - android:contentDescription="@null" + android:contentDescription="@string/rear_display_accessibility_unfolded_animation" android:scaleType="fitXY" app:lottie_rawRes="@raw/rear_display_turnaround" app:lottie_autoPlay="true" diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 52a931bdd6ec9..9a0fbd7171338 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -2753,4 +2753,8 @@ Use the rear-facing camera for a wider photo with higher resolution. ✱ This screen will turn off + + Foldable device being unfolded + + Foldable device being flipped around