diff options
| author | 2013-08-27 10:53:15 -0700 | |
|---|---|---|
| committer | 2013-08-27 10:53:15 -0700 | |
| commit | 7f6f45723adea684529dd9b7465d798f10c3acbf (patch) | |
| tree | 09f8e28dfb2fff373306c9ba1f509151269df6c3 /location/java/android | |
| parent | 4a9c7fec662315d9da48f0f5f99313f270424b48 (diff) | |
Remove or reduce visibility of deprecated methods
- Fix additional getInt() path, restores the location settings screen
functionality.
- Should fix "unresolved link" build breakages in
git_klp-dev-plus-aosp-without-vendor, which is much more persnickety than
klp-dev for some reason.
- Add warning that we may add additional location modes in the future.
- Finish fix for b/10461763 and b/10461474
Change-Id: Id7155e3a0d7526a377d446018ef3bdb057bad3a6
Diffstat (limited to 'location/java/android')
| -rw-r--r-- | location/java/android/location/SettingInjectorService.java | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/location/java/android/location/SettingInjectorService.java b/location/java/android/location/SettingInjectorService.java index 7e8137c84bc3..0b0f05d43639 100644 --- a/location/java/android/location/SettingInjectorService.java +++ b/location/java/android/location/SettingInjectorService.java @@ -102,16 +102,6 @@ public abstract class SettingInjectorService extends IntentService { public static final String SUMMARY_KEY = "summary"; /** - * TODO: delete after switching SettingsInjector to use {@link #SUMMARY_KEY}. - * - * @deprecated use {@link #SUMMARY_KEY} - * - * @hide - */ - @Deprecated - public static final String STATUS_KEY = "status"; - - /** * Name of the bundle key for the string specifying whether the setting is currently enabled. * * @hide @@ -132,14 +122,6 @@ public abstract class SettingInjectorService extends IntentService { public static final String ACTION_INJECTED_SETTING_CHANGED = "com.android.location.InjectedSettingChanged"; - /** - * TODO: delete after switching callers to use {@link #ACTION_INJECTED_SETTING_CHANGED}. - * - * @deprecated use {@link #ACTION_INJECTED_SETTING_CHANGED} - */ - @Deprecated - public static final String UPDATE_INTENT = ACTION_INJECTED_SETTING_CHANGED; - private final String mName; /** @@ -170,7 +152,6 @@ public abstract class SettingInjectorService extends IntentService { Message message = Message.obtain(); Bundle bundle = new Bundle(); if (status != null) { - bundle.putString(STATUS_KEY, status.summary); bundle.putString(SUMMARY_KEY, status.summary); bundle.putBoolean(ENABLED_KEY, status.enabled); } @@ -214,7 +195,7 @@ public abstract class SettingInjectorService extends IntentService { * choosing to hide a setting. Instead you should provide a {@code enabled} value of false, * which will gray the setting out and disable the link from "Settings > Location" * to your setting activity. One reason why you might choose to do this is if - * {@link android.provider.Settings.Secure#getLocationMode(android.content.ContentResolver)} + * {@link android.provider.Settings.Secure#LOCATION_MODE} * is {@link android.provider.Settings.Secure#LOCATION_MODE_OFF}. * * It is possible that the user may click on the setting before you return a false value for |