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:
Kate Montgomery
2022-01-19 17:20:01 +00:00
parent 1d7def59ad
commit 7a7ec0e61a
2 changed files with 7 additions and 0 deletions

View File

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

View File

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