diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 663f2b86f2d..f5c368f1ff6 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -109,7 +109,7 @@
@@ -122,7 +122,7 @@
@@ -143,8 +143,7 @@
-
+ android:parentActivityName="Settings" />
@@ -155,11 +154,12 @@
-
+ android:parentActivityName="Settings"
+ android:taskAffinity="com.android.settings">
@@ -181,15 +181,20 @@
android:value="true" />
-
+
+
+
+
@@ -206,12 +211,13 @@
android:value="true" />
-
+
@@ -253,13 +259,13 @@
-
-
-
+
@@ -278,21 +284,10 @@
android:value="content://com.android.settings.slices/wifi" />
-
-
-
-
-
-
+
@@ -305,12 +300,13 @@
android:value="true" />
-
+
@@ -326,12 +322,13 @@
android:value="true" />
-
+
@@ -346,9 +343,7 @@
android:value="true" />
-
+
@@ -358,9 +353,7 @@
android:value="com.android.settings.wifi.WifiInfo" />
-
+
@@ -428,14 +421,13 @@
android:value="com.android.settings.ApnSettings" />
-
-
-
-
-
+
@@ -446,10 +438,19 @@
android:value="com.android.settings.bluetooth.BluetoothSettings" />
+
+
+
+
+
+ android:icon="@drawable/ic_settings_gestures">
@@ -458,16 +459,6 @@
android:value="com.android.settings.gestures.AssistGestureSettings" />
-
-
-
-
-
@@ -492,10 +483,12 @@
-
+
@@ -517,8 +510,8 @@
+ android:taskAffinity="com.android.settings"
+ android:parentActivityName="Settings">
@@ -528,11 +521,12 @@
android:value="com.android.settings.wifi.p2p.WifiP2pSettings" />
-
-
+
@@ -550,10 +544,12 @@
android:value="true" />
-
+
@@ -575,11 +571,12 @@
android:value="true" />
-
+
@@ -595,11 +592,12 @@
android:value="true" />
-
+ android:parentActivityName="Settings">
@@ -628,10 +626,11 @@
android:value="true" />
-
+
@@ -680,10 +679,11 @@
android:value="com.android.settings.language.LanguageAndInputSettings" />
-
+
@@ -709,10 +709,11 @@
android:value="true" />
-
+
@@ -751,11 +752,13 @@
android:value="com.android.settings.UserDictionarySettings" />
-
+
@@ -771,11 +774,13 @@
android:value="true" />
-
+
@@ -786,11 +791,13 @@
android:value="true" />
-
+
@@ -807,8 +814,7 @@
+ android:icon="@drawable/ic_wallpaper">
@@ -850,9 +856,11 @@
android:resource="@string/new_device_suggestion_summary" />
-
+
@@ -867,9 +875,11 @@
android:value="true" />
-
+
@@ -884,9 +894,11 @@
android:value="true" />
-
+
@@ -901,10 +913,12 @@
android:value="true" />
-
+
@@ -938,11 +952,13 @@
android:value="com.android.settings.DisplaySettings" />
-
+
@@ -958,9 +974,9 @@
android:value="true" />
-
@@ -978,11 +994,13 @@
android:value="com.android.settings.display.NightDisplaySettings" />
-
+
@@ -1005,7 +1023,6 @@
android:value="true" />
-
-
+
@@ -1046,9 +1065,11 @@
android:value="true" />
-
+
@@ -1067,10 +1088,20 @@
android:value="true" />
-
+
+
+
+
+
+
@@ -1081,8 +1112,7 @@
+ android:icon="@drawable/ic_settings_memory">
@@ -1102,9 +1132,11 @@
android:value="com.android.settings.applications.ProcessStatsUi" />
-
+
@@ -1115,9 +1147,9 @@
android:value="true" />
-
+
@@ -1125,10 +1157,10 @@
-
+
@@ -1136,15 +1168,6 @@
-
-
-
-
-
-
+ android:exported="true" />
-
+
@@ -1225,9 +1246,11 @@
android:value="true" />
-
+
@@ -1249,7 +1272,6 @@
@@ -1259,11 +1281,13 @@
android:value="com.android.settings.applications.BackgroundCheckSummary" />
-
+
@@ -1280,12 +1304,13 @@
android:value="true" />
-
+
@@ -1322,10 +1347,12 @@
-
+
@@ -1356,8 +1383,7 @@
-
+ android:exported="false" />
-
+
@@ -1402,10 +1429,20 @@
-
+
+
+
+
+
+
+
+
@@ -1418,15 +1455,6 @@
android:value="com.android.settings.applications.manageapplications.ManageApplications" />
-
-
-
-
-
-
-
@@ -1439,11 +1467,13 @@
android:value="com.android.settings.IccLockSettings" />
-
+
@@ -1490,10 +1520,11 @@
android:value="true" />
-
+
@@ -1508,10 +1539,11 @@
android:value="true" />
-
+
@@ -1526,10 +1558,11 @@
android:value="true" />
-
+
@@ -1540,10 +1573,11 @@
android:value="true" />
-
+
@@ -1552,8 +1586,6 @@
android:value="com.android.settings.enterprise.EnterprisePrivacySettings" />
-
-
-
+
@@ -1797,18 +1830,18 @@
android:value="true" />
-
+
+ android:value="com.android.settings.deviceinfo.PrivateVolumeSettings" />
-
+
@@ -1821,12 +1854,11 @@
android:value="com.android.settings.deviceinfo.PublicVolumeSettings" />
-
+
@@ -1898,12 +1930,13 @@
android:value="com.android.settings.ApnEditor" />
-
+
@@ -1936,11 +1969,12 @@
-
+
@@ -1977,10 +2011,7 @@
android:theme="@android:style/Theme.DeviceDefault.Light.Dialog" />
-
-
-
+ android:label="@string/select_webview_provider_dialog_title" />
-
+
@@ -2103,10 +2135,12 @@
android:value="true" />
-
+
@@ -2124,17 +2158,9 @@
android:value="com.android.settings.wfd.WifiDisplaySettings" />
-
-
-
-
-
-
-
-
@@ -2190,7 +2216,8 @@
-
@@ -2199,10 +2226,13 @@
-
+
@@ -2221,18 +2251,11 @@
android:value="com.android.settings.fuelgauge.PowerUsageSummary" />
-
-
-
-
-
+ android:icon="@drawable/ic_homepage_battery"
+ android:taskAffinity="com.android.settings"
+ android:parentActivityName="Settings">
@@ -2246,10 +2269,12 @@
android:value="com.android.settings.fuelgauge.PowerUsageSummaryLegacy" />
-
+
@@ -2271,9 +2296,10 @@
-
@@ -2288,9 +2314,10 @@
-
@@ -2301,12 +2328,13 @@
android:value="com.android.settings.accounts.ManagedProfileSettings" />
-
+ android:parentActivityName="Settings">
@@ -2383,10 +2411,13 @@
android:value="com.android.settings.security.CryptKeeperSettings" />
-
+
@@ -2397,10 +2428,12 @@
android:value="com.android.settings.datausage.DataUsageSummary" />
-
+
@@ -2415,9 +2448,11 @@
android:value="com.android.settings.datausage.DataUsageSummaryLegacy" />
-
+
@@ -2426,10 +2461,12 @@
android:value="com.android.settings.datausage.DataUsageList" />
-
+
@@ -2445,10 +2482,12 @@
android:value="true" />
-
+
@@ -2468,10 +2507,12 @@
android:value="true" />
-
+
@@ -2500,7 +2541,7 @@
+ android:parentActivityName="Settings$PaymentSettingsActivity"
android:excludeFromRecents="true">
@@ -2514,9 +2555,11 @@
-
+
@@ -2529,9 +2572,11 @@
android:value="com.android.settings.notification.NotificationAccessSettings" />
-
+
@@ -2544,9 +2589,11 @@
android:value="com.android.settings.applications.VrListenerSettings" />
-
+ android:taskAffinity="com.android.settings"
+ android:parentActivityName="Settings">
@@ -2559,9 +2606,11 @@
android:value="com.android.settings.applications.appinfo.PictureInPictureSettings" />
-
+ android:taskAffinity="com.android.settings"
+ android:parentActivityName="Settings">
@@ -2571,9 +2620,11 @@
android:value="com.android.settings.applications.appinfo.PictureInPictureDetails" />
-
+
@@ -2586,10 +2637,12 @@
android:value="com.android.settings.notification.ZenAccessSettings" />
-
+
@@ -2611,11 +2664,13 @@
-
+
@@ -2641,15 +2696,6 @@
android:resource="@string/sound_dashboard_summary"/>
-
-
-
-
-
@@ -2676,7 +2722,6 @@
android:value="com.android.settings.notification.ChannelGroupNotificationSettings" />
-
@@ -2693,10 +2738,12 @@
-
+
@@ -2706,10 +2753,12 @@
-
+
@@ -2768,10 +2817,12 @@
android:resource="@xml/file_paths" />
-
+
@@ -2793,11 +2844,11 @@
-
+ android:excludeFromRecents="true" />
-
@@ -2807,7 +2858,8 @@
-
-
+
@@ -2839,21 +2893,20 @@
+ android:value="com.android.settings.wifi.calling.WifiCallingSettings" />
-
+ android:icon="@drawable/ic_settings_wireless">
+ android:value="com.android.settings.wifi.calling.WifiCallingSettings" />
-
+
@@ -2894,9 +2949,11 @@
android:value="com.android.settings.applications.manageapplications.ManageApplications" />
-
+
@@ -2906,9 +2963,11 @@
android:value="com.android.settings.applications.appinfo.DrawOverlayDetails" />
-
+
@@ -2917,10 +2976,11 @@
android:value="com.android.settings.applications.manageapplications.ManageApplications" />
-
-
+
@@ -2930,9 +2990,11 @@
android:value="com.android.settings.applications.appinfo.WriteSettingsDetails" />
-
+
@@ -2963,10 +3025,12 @@
-
+
@@ -3022,10 +3086,12 @@
android:value="true" />
-
+
@@ -3033,12 +3099,13 @@
-
-
-
+
@@ -3050,9 +3117,12 @@
android:resource="@string/app_and_notification_dashboard_summary"/>
-
+
@@ -3066,9 +3136,12 @@
android:value="com.android.settings.category.ia.homepage"/>
-
+
@@ -3098,8 +3171,6 @@
android:resource="@string/support_summary"/>
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/layout/battery_saver_settings_button.xml b/res/layout/two_state_button.xml
similarity index 85%
rename from res/layout/battery_saver_settings_button.xml
rename to res/layout/two_state_button.xml
index 015d4d88f86..22bf2bd3da0 100644
--- a/res/layout/battery_saver_settings_button.xml
+++ b/res/layout/two_state_button.xml
@@ -25,23 +25,21 @@
android:layout_height="match_parent">
\ No newline at end of file
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 2d48e423e68..d37091c5948 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -162,4 +162,12 @@
+
+
+
+
+
+
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2540640f901..86e538fab77 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5844,6 +5844,8 @@
2G-3G data
4G data
+
+ Roaming
Foreground:
@@ -6476,6 +6478,7 @@
+
Account for content
@@ -8655,6 +8658,27 @@
- %1$d apps allowed to use unrestricted data when Data Saver is on
+
+ Primary data
+
+
+ ^1 used
+
+
+ , ^1 left
+
+
+ %1$s left in this cycle
+
+
+ Updated by %1$s %2$s
+
+
+ Updated %1$s
+
+
+ VIEW PLAN
+
Data saver
diff --git a/res/values/styles_preference.xml b/res/values/styles_preference.xml
index 056d55a0997..5fe1ef41787 100644
--- a/res/values/styles_preference.xml
+++ b/res/values/styles_preference.xml
@@ -36,4 +36,8 @@
- @layout/preference_widget_sync_toggle
+
+
\ No newline at end of file
diff --git a/res/values/themes.xml b/res/values/themes.xml
index d960654f11c..a8ceca3dbf6 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -176,6 +176,7 @@
- @style/SettingsPreferenceFragmentStyle
- @style/ApnPreference
- @style/SettingsSeekBarPreference
+ - @style/TwoStateButtonPreference