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

Commit b451e8f1 authored by Stanley Wang's avatar Stanley Wang
Browse files

Fix the ClassCastException of ChannelNotificationSettings

Update the LayoutPreference to SettingsMainSwitchPreference.

Fix: 177907827
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I7ce320b8e38432faf685914bf91cf1daa62b2687
parent 5a8b96a2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -25,10 +25,9 @@
        android:order="1"
        android:layout="@layout/settings_entity_header" />

    <com.android.settingslib.widget.LayoutPreference
    <com.android.settings.widget.SettingsMainSwitchPreference
        android:key="block"
        android:order="2"
        android:layout="@layout/styled_switch_bar" />
        android:order="2" />

    <!-- Importance toggle -->
    <com.android.settingslib.RestrictedSwitchPreference