From 16a1a0f9825f40caa59d23424fc65e3beaf14b8d Mon Sep 17 00:00:00 2001 From: Miranda Kephart Date: Tue, 17 Mar 2020 13:03:58 -0400 Subject: [PATCH] Add content descriptions for dismiss and preview Currently the dismiss button and the screenshot preview are read as "Unlabeled" when in talkback mode. This adds content descriptions for them so that they are described correctly. Test: manual Fixes: 151325418 Change-Id: I16430fe20b285c3393903a2430e6b22cca41fafb --- packages/SystemUI/res/layout/global_screenshot.xml | 6 ++++-- packages/SystemUI/res/values/strings.xml | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/layout/global_screenshot.xml b/packages/SystemUI/res/layout/global_screenshot.xml index a76f96115fa91..d506e7e8e7003 100644 --- a/packages/SystemUI/res/layout/global_screenshot.xml +++ b/packages/SystemUI/res/layout/global_screenshot.xml @@ -58,13 +58,15 @@ android:elevation="@dimen/screenshot_preview_elevation" android:visibility="gone" android:background="@drawable/screenshot_rounded_corners" - android:adjustViewBounds="true"/> + android:adjustViewBounds="true" + android:contentDescription="@string/screenshot_preview_description"/> + android:visibility="gone" + android:contentDescription="@string/screenshot_dismiss_ui_description"> Taking screenshots isn\'t allowed by the app or your organization + + Dismiss screenshot + + Open screenshot Screen Recorder