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
This commit is contained in:
Miranda Kephart
2022-04-04 12:16:13 -04:00
parent f0f06ed209
commit 577076bea5

View File

@@ -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"