[Catalyst] Add more constants to SettingsContract

Bug: 388061003
Flag: EXEMPT refactor
Test: N/A
Change-Id: I906b345a56fa87909411ef64c73e2696240388ae
This commit is contained in:
Jacky Wang
2025-02-05 17:02:15 +08:00
parent d40442c91f
commit ef3b232523
3 changed files with 14 additions and 7 deletions

View File

@@ -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"

View File

@@ -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.

View File

@@ -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.
*/