Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33c5ed92 authored by Stanley Wang's avatar Stanley Wang
Browse files

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
parent 99b691f5
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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>