From 33c5ed926e3fc664b9e9f64ab263f8628739096b Mon Sep 17 00:00:00 2001 From: Stanley Wang Date: Sun, 27 Jun 2021 17:13:41 +0800 Subject: [PATCH] Fix the problem that the unknown item will be announced when using Switch Access. - Disable the importantForAccessibility of the MainSwitchBar's parent layout. Fix: 182227784 Test: robotest and operate the switch preference manually Change-Id: If1780361fcc7d7e0e53400d068ef4d2c31d6d8af --- .../res/layout/settingslib_main_switch_layout.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_layout.xml b/packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_layout.xml index eccf0c091e491..bef6e352d854c 100644 --- a/packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_layout.xml +++ b/packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_layout.xml @@ -15,9 +15,10 @@ limitations under the License. --> - + android:layout_width="match_parent" + android:importantForAccessibility="no"> - +