diff options
author | Lifu Tang <lifu@google.com> | 2013-09-03 16:36:56 -0700 |
---|---|---|
committer | Lifu Tang <lifu@google.com> | 2013-09-03 16:38:05 -0700 |
commit | 98486fa1faea9a02743d6641eb9806e7fca6e1b0 (patch) | |
tree | d3fc7675d7f521ab73b70779cf2032b9c22857cd /src/com/android/settings/location | |
parent | b3cd38eab4402a95e779d4d0b92480b7c53fa473 (diff) | |
download | packages_apps_Settings-98486fa1faea9a02743d6641eb9806e7fca6e1b0.zip packages_apps_Settings-98486fa1faea9a02743d6641eb9806e7fca6e1b0.tar.gz packages_apps_Settings-98486fa1faea9a02743d6641eb9806e7fca6e1b0.tar.bz2 |
Renamed "Location services" to "App settings"
- Fix b/10610559
Change-Id: I7f7167fb45ebeb045b4c0095448de0134a551eec
Diffstat (limited to 'src/com/android/settings/location')
-rw-r--r-- | src/com/android/settings/location/LocationSettings.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/settings/location/LocationSettings.java b/src/com/android/settings/location/LocationSettings.java index 22bf42b..6dceea9 100644 --- a/src/com/android/settings/location/LocationSettings.java +++ b/src/com/android/settings/location/LocationSettings.java @@ -55,7 +55,7 @@ public class LocationSettings extends LocationSettingsBase /** Key for preference category "Recent location requests" */ private static final String KEY_RECENT_LOCATION_REQUESTS = "recent_location_requests"; /** Key for preference category "Location services" */ - private static final String KEY_LOCATION_SERVICES = "location_services"; + private static final String KEY_APP_SETTINGS = "app_settings"; private Switch mSwitch; private boolean mValidListener; @@ -165,10 +165,10 @@ public class LocationSettings extends LocationSettingsBase categoryRecentLocationRequests.addPreference(banner); } - PreferenceCategory categoryLocationServices = - (PreferenceCategory) root.findPreference(KEY_LOCATION_SERVICES); + PreferenceCategory categoryAppSettings = + (PreferenceCategory) root.findPreference(KEY_APP_SETTINGS); final SettingsInjector injector = new SettingsInjector(activity); - List<Preference> locationServices = injector.getInjectedSettings(); + List<Preference> appSettings = injector.getInjectedSettings(); mReceiver = new BroadcastReceiver() { @Override @@ -182,11 +182,11 @@ public class LocationSettings extends LocationSettingsBase activity.registerReceiver(mReceiver, new IntentFilter(SettingInjectorService.ACTION_INJECTED_SETTING_CHANGED)); - if (locationServices.size() > 0) { - addPreferencesSorted(locationServices, categoryLocationServices); + if (appSettings.size() > 0) { + addPreferencesSorted(appSettings, categoryAppSettings); } else { // If there's no item to display, remove the whole category. - root.removePreference(categoryLocationServices); + root.removePreference(categoryAppSettings); } // Only show the master switch when we're not in multi-pane mode, and not being used as |