diff options
| author | 2020-12-15 13:04:25 -0800 | |
|---|---|---|
| committer | 2020-12-15 13:04:25 -0800 | |
| commit | 5497568a87b0dbf3162b4525a13179dbd63709f4 (patch) | |
| tree | 4f1694c440ea76f082a5d071188914de25f84971 | |
| parent | 82f20411b56c80719e30d30293d74bd39c4ae2ae (diff) | |
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
| -rw-r--r-- | packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml b/packages/SettingsLib/LayoutPreference/res/layout/layout_preference_frame.xml index ee4ce499396f..4412e95c87ed 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 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="wrap_content"/> + android:layout_height="wrap_content" + android:importantForAccessibility="no"/> |