From 577076bea53d215522897855015fc4ab8182fd12 Mon Sep 17 00:00:00 2001 From: Miranda Kephart Date: Mon, 4 Apr 2022 12:16:13 -0400 Subject: [PATCH] Mark screenshot preview as clickable Currently, talkback initially announces the screenshot preview as "Edit screenshot; image", but once the preview is tapped says "Edit screenshot; button". The screenshot preview is clickable and assigning it "android:clickable=true" fixes this issue (to make it always say "Edit screenshot; button"). Bug: 215819076 Fix: 215819076 Test: manual, with talkback on Change-Id: Ib184322fb7fdfe04a921f36fde14d4ceaea3a140 --- packages/SystemUI/res/layout/screenshot_static.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/res/layout/screenshot_static.xml b/packages/SystemUI/res/layout/screenshot_static.xml index 8de80844d7843..c60609b06d384 100644 --- a/packages/SystemUI/res/layout/screenshot_static.xml +++ b/packages/SystemUI/res/layout/screenshot_static.xml @@ -98,6 +98,7 @@ android:scaleType="fitEnd" android:background="@drawable/overlay_preview_background" android:adjustViewBounds="true" + android:clickable="true" app:layout_constraintBottom_toBottomOf="@id/screenshot_preview_border" app:layout_constraintStart_toStartOf="@id/screenshot_preview_border" app:layout_constraintEnd_toEndOf="@id/screenshot_preview_border"