Use SettingsLib's MainSwitchBar to replace SwitchBar in Settings.
To log Settings metrics, the MainSwitch extends MainSwitchBar and replace the SwitchBar in SettingsActivity. Bug: 175181773 Test: Run robotest and apply the widget in Settings and see the ui Change-Id: I3add3702e9058ad9192b5172c7cf0e2ccfb55a70
This commit is contained in:
@@ -19,10 +19,8 @@
|
||||
android:key="mobile_network_pref_screen"
|
||||
settings:initialExpandedChildrenCount="8">
|
||||
|
||||
<com.android.settingslib.widget.LayoutPreference
|
||||
<com.android.settings.widget.SettingsMainSwitchPreference
|
||||
android:key="use_sim_switch"
|
||||
android:title="@string/summary_placeholder"
|
||||
android:layout="@layout/styled_switch_bar"
|
||||
settings:controller="com.android.settings.network.telephony.MobileNetworkSwitchController"/>
|
||||
|
||||
<PreferenceCategory
|
||||
|
||||
Reference in New Issue
Block a user