From 5497568a87b0dbf3162b4525a13179dbd63709f4 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Tue, 15 Dec 2020 13:04:25 -0800 Subject: [PATCH] Mark layout_preference container not important for a11y. This container by itself does not have anything meaningful for accessibility. Marking this view not important for a11y forces tools such as talkback look into children views for accessibility action. However if this view is left at default accessibility importantace, it tries to aggregate accessibilty info from children. So if there is any clickable children, this view will say "double tap to activate" when it's not a tap target. Fix: 175515538 Fix: 175515122 Test: manual Change-Id: I415090fb8601bc4cb129999a50ac35e045ef7830 --- .../LayoutPreference/res/layout/layout_preference_frame.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml b/packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml index ee4ce499396ff..4412e95c87ed5 100644 --- a/packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml +++ b/packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml @@ -17,4 +17,5 @@ + android:layout_height="wrap_content" + android:importantForAccessibility="no"/>