Use MainSwitchPreference to replace the button style switches.
Fix: 177967926 Fix: 177968295 Fix: 177967925 Fix: 177968078 Test: Run robotest and apply the widget in Settings and see the ui Change-Id: Ie854de96e5495fa564fb8a097ed4547bbd2b10c5
This commit is contained in:
@@ -21,12 +21,9 @@
|
||||
android:title="@string/zen_mode_settings_title">
|
||||
|
||||
<!-- Turn on DND button -->
|
||||
<com.android.settingslib.widget.LayoutPreference
|
||||
<com.android.settingslib.widget.MainSwitchPreference
|
||||
android:key="zen_mode_toggle"
|
||||
android:title="@string/zen_mode_settings_title"
|
||||
android:selectable="false"
|
||||
android:layout="@layout/zen_mode_settings_button"
|
||||
settings:allowDividerBelow="true"
|
||||
android:title="@string/do_not_disturb_main_switch_title"
|
||||
settings:keywords="@string/keywords_zen_mode_settings"/>
|
||||
|
||||
<PreferenceCategory
|
||||
|
||||
Reference in New Issue
Block a user