[Catalyst] Add more constants to SettingsContract
Bug: 388061003 Flag: EXEMPT refactor Test: N/A Change-Id: I906b345a56fa87909411ef64c73e2696240388ae
This commit is contained in:
@@ -33,5 +33,17 @@ const val KEY_LOCATION = SettingsSlicesContract.KEY_LOCATION
|
|||||||
/** Contract key for the "Wi-fi" setting. */
|
/** Contract key for the "Wi-fi" setting. */
|
||||||
const val KEY_WIFI = SettingsSlicesContract.KEY_WIFI
|
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. */
|
/** Contract key for the "Use Data Saver" setting. */
|
||||||
const val KEY_DATA_SAVER = "data_saver"
|
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"
|
||||||
|
@@ -141,7 +141,7 @@ public class CustomSliceRegistry {
|
|||||||
.scheme(ContentResolver.SCHEME_CONTENT)
|
.scheme(ContentResolver.SCHEME_CONTENT)
|
||||||
.authority(SettingsSliceProvider.SLICE_AUTHORITY)
|
.authority(SettingsSliceProvider.SLICE_AUTHORITY)
|
||||||
.appendEncodedPath(SettingsSlicesContract.PATH_SETTING_ACTION)
|
.appendEncodedPath(SettingsSlicesContract.PATH_SETTING_ACTION)
|
||||||
.appendPath("mobile_data")
|
.appendPath(SettingsContractKt.KEY_MOBILE_DATA)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -220,7 +220,7 @@ public class CustomSliceRegistry {
|
|||||||
.scheme(ContentResolver.SCHEME_CONTENT)
|
.scheme(ContentResolver.SCHEME_CONTENT)
|
||||||
.authority(SettingsSliceProvider.SLICE_AUTHORITY)
|
.authority(SettingsSliceProvider.SLICE_AUTHORITY)
|
||||||
.appendPath(SettingsSlicesContract.PATH_SETTING_INTENT)
|
.appendPath(SettingsSlicesContract.PATH_SETTING_INTENT)
|
||||||
.appendPath(WifiCallingSliceHelper.PATH_WIFI_CALLING)
|
.appendPath(SettingsContractKt.KEY_WIFI_CALLING)
|
||||||
.build();
|
.build();
|
||||||
/**
|
/**
|
||||||
* Full {@link Uri} for the Wifi Calling Preference Slice.
|
* Full {@link Uri} for the Wifi Calling Preference Slice.
|
||||||
|
@@ -63,11 +63,6 @@ public class WifiCallingSliceHelper {
|
|||||||
|
|
||||||
private static final String TAG = "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.
|
* Settings slice path to wifi calling preference setting.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user