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
This commit is contained in:
@@ -25,10 +25,9 @@
|
|||||||
android:order="1"
|
android:order="1"
|
||||||
android:layout="@layout/settings_entity_header" />
|
android:layout="@layout/settings_entity_header" />
|
||||||
|
|
||||||
<com.android.settingslib.widget.LayoutPreference
|
<com.android.settings.widget.SettingsMainSwitchPreference
|
||||||
android:key="block"
|
android:key="block"
|
||||||
android:order="2"
|
android:order="2" />
|
||||||
android:layout="@layout/styled_switch_bar" />
|
|
||||||
|
|
||||||
<!-- Importance toggle -->
|
<!-- Importance toggle -->
|
||||||
<com.android.settingslib.RestrictedSwitchPreference
|
<com.android.settingslib.RestrictedSwitchPreference
|
||||||
|
Reference in New Issue
Block a user