From 82fb5b0afe346f2e575d148f084ae0d7eecc2eaa Mon Sep 17 00:00:00 2001 From: Yining Liu Date: Fri, 16 Sep 2022 06:55:52 +0000 Subject: [PATCH] Fix Talkback focus order of Wrapped Notification Make notification_header not important for accessibility to make sure early recursion happens in parent's ViewGroup.addChildrenForAccessibility(ArrayList outChildren) Bug: 246950513 Test: Visual, turn on Talkback, mock a wrapped notification(collapsed), right swipe to move Talkback focus. Expand button should be focused prior to the first line of Wrapped Text. Change-Id: I98d5c3158b25edf58947e72c5307eae159915dc3 --- core/res/res/layout/notification_template_header.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/core/res/res/layout/notification_template_header.xml b/core/res/res/layout/notification_template_header.xml index a7f2aa7cba69a..be1c939f0ff8e 100644 --- a/core/res/res/layout/notification_template_header.xml +++ b/core/res/res/layout/notification_template_header.xml @@ -24,6 +24,7 @@ android:gravity="center_vertical" android:orientation="horizontal" android:theme="@style/Theme.DeviceDefault.Notification" + android:importantForAccessibility="no" >