Add a flag for controlling location indicator settings.

Bug: 177334097
Test: Manual && make RunSettingsRoboTests ROBOTEST_FILTER=LocationIndicatorsPreferenceControllerTest
Change-Id: I33821ab8328fd18b796a78813b7354a928832792
This commit is contained in:
Wei Wang
2021-01-12 10:30:25 -08:00
parent bd56b6ba62
commit a6daf85a32
3 changed files with 35 additions and 0 deletions

View File

@@ -147,6 +147,12 @@ public final class Utils extends com.android.settingslib.Utils {
*/
public static final String PROPERTY_LOCATION_INDICATORS_ENABLED = "location_indicators_enabled";
/**
* Whether to show location indicator settings in developer options.
*/
public static final String PROPERTY_LOCATION_INDICATOR_SETTINGS_ENABLED =
"location_indicator_settings_enabled";
/**
* Finds a matching activity for a preference's intent. If a matching
* activity is not found, it will remove the preference.