summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Stanley Wang <stanleytfwang@google.com> 2021-06-29 07:01:15 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-06-29 07:01:15 +0000
commita46e16bdf1f7ac5be6835f33b74d28157c3b3ee3 (patch)
treeb8b6f2ece116c136fca09db18105e785070dad35
parent98a11ef7b104c5ab271d70e49f4d697a1bd3a707 (diff)
parent33c5ed926e3fc664b9e9f64ab263f8628739096b (diff)
Merge "Fix the problem that the unknown item will be announced when using Switch Access." into sc-dev
-rw-r--r--packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_layout.xml7
1 files 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 eccf0c091e49..bef6e352d854 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.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
- android:layout_width="match_parent" >
+ android:layout_width="match_parent"
+ android:importantForAccessibility="no">
<com.android.settingslib.widget.MainSwitchBar
android:id="@+id/settingslib_main_switch_bar"
@@ -25,6 +26,6 @@
android:layout_height="wrap_content"
android:layout_width="match_parent" />
-</LinearLayout>
+</FrameLayout>