Add a setting which stores whether or not to show system location
accesses. This is needed for aligning the location indicator to the recent location accesses page in location settings. Bug: 191503437 Test: manual Change-Id: I9d2f473a75e3bfdfef59e675d2f6849e66cbbd94
This commit is contained in:
@@ -7157,6 +7157,12 @@ public final class Settings {
|
||||
@Readable
|
||||
public static final String LOCATION_COARSE_ACCURACY_M = "locationCoarseAccuracy";
|
||||
|
||||
/**
|
||||
* Whether or not to show display system location accesses.
|
||||
* @hide
|
||||
*/
|
||||
public static final String LOCATION_SHOW_SYSTEM_OPS = "locationShowSystemOps";
|
||||
|
||||
/**
|
||||
* A flag containing settings used for biometric weak
|
||||
* @hide
|
||||
|
||||
@@ -296,6 +296,7 @@ public class SecureSettingsValidators {
|
||||
VALIDATORS.put(Secure.CLIPBOARD_SHOW_ACCESS_NOTIFICATIONS, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(Secure.NOTIFICATION_BUBBLES, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(Secure.LOCATION_TIME_ZONE_DETECTION_ENABLED, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(Secure.LOCATION_SHOW_SYSTEM_OPS, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(Secure.DEVICE_STATE_ROTATION_LOCK, value -> {
|
||||
if (TextUtils.isEmpty(value)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user