diff --git a/src/com/android/settings/contract/SettingsContract.kt b/src/com/android/settings/contract/SettingsContract.kt index 4316e3cad74..d3798daa582 100644 --- a/src/com/android/settings/contract/SettingsContract.kt +++ b/src/com/android/settings/contract/SettingsContract.kt @@ -33,5 +33,17 @@ const val KEY_LOCATION = SettingsSlicesContract.KEY_LOCATION /** Contract key for the "Wi-fi" setting. */ const val KEY_WIFI = SettingsSlicesContract.KEY_WIFI +/** Contract key for the "Use Wi-Fi calling" setting. */ +const val KEY_WIFI_CALLING = "wifi_calling" + /** Contract key for the "Use Data Saver" setting. */ const val KEY_DATA_SAVER = "data_saver" + +/** Contract key for the "Mobile data" setting. */ +const val KEY_MOBILE_DATA = "mobile_data" + +/** Contract key for the "Adaptive brightness" setting. */ +const val KEY_ADAPTIVE_BRIGHTNESS = "auto_brightness" + +/** Contract key for the "Screen attention" setting. */ +const val KEY_SCREEN_ATTENTION = "screen_attention" diff --git a/src/com/android/settings/slices/CustomSliceRegistry.java b/src/com/android/settings/slices/CustomSliceRegistry.java index 4e8d312e544..41f189276dd 100644 --- a/src/com/android/settings/slices/CustomSliceRegistry.java +++ b/src/com/android/settings/slices/CustomSliceRegistry.java @@ -141,7 +141,7 @@ public class CustomSliceRegistry { .scheme(ContentResolver.SCHEME_CONTENT) .authority(SettingsSliceProvider.SLICE_AUTHORITY) .appendEncodedPath(SettingsSlicesContract.PATH_SETTING_ACTION) - .appendPath("mobile_data") + .appendPath(SettingsContractKt.KEY_MOBILE_DATA) .build(); /** @@ -220,7 +220,7 @@ public class CustomSliceRegistry { .scheme(ContentResolver.SCHEME_CONTENT) .authority(SettingsSliceProvider.SLICE_AUTHORITY) .appendPath(SettingsSlicesContract.PATH_SETTING_INTENT) - .appendPath(WifiCallingSliceHelper.PATH_WIFI_CALLING) + .appendPath(SettingsContractKt.KEY_WIFI_CALLING) .build(); /** * Full {@link Uri} for the Wifi Calling Preference Slice. diff --git a/src/com/android/settings/wifi/calling/WifiCallingSliceHelper.java b/src/com/android/settings/wifi/calling/WifiCallingSliceHelper.java index 4272ab7dd8f..d95ff83e6a9 100644 --- a/src/com/android/settings/wifi/calling/WifiCallingSliceHelper.java +++ b/src/com/android/settings/wifi/calling/WifiCallingSliceHelper.java @@ -63,11 +63,6 @@ public class WifiCallingSliceHelper { private static final String TAG = "WifiCallingSliceHelper"; - /** - * Settings slice path to wifi calling setting. - */ - public static final String PATH_WIFI_CALLING = "wifi_calling"; - /** * Settings slice path to wifi calling preference setting. */