diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-02-01 09:37:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-02-01 09:37:01 +0000 |
commit | 98bfaaf496cff9067d381281622fd15562467bf3 (patch) | |
tree | fb7bbecb5824f7cb2e0b6f59352ad92264089416 /location | |
parent | 158ddeda0a2aa4ea09c441f2b849f7d2e3ac8ae0 (diff) | |
parent | 56a2a445372e47cccdbf35249142adfaa44af6cb (diff) |
Merge "Remove setLocationExtra per API feedback"
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/Location.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index 7a12cee899d8..eb76c29301c6 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -16,7 +16,6 @@ package android.location; -import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.TestApi; import android.compat.annotation.UnsupportedAppUsage; @@ -1214,23 +1213,6 @@ public class Location implements Parcelable { } /** - * Attaches an extra {@link Location} to this Location. This is useful for location providers - * to set the {@link #EXTRA_NO_GPS_LOCATION} extra to provide coarse locations for clients. - * - * @param key the key associated with the Location extra - * @param value the Location to attach - * @hide - */ - @TestApi - @SystemApi - public void setExtraLocation(@Nullable String key, @Nullable Location value) { - if (mExtras == null) { - mExtras = new Bundle(); - } - mExtras.putParcelable(key, value); - } - - /** * Returns true if the Location came from a mock provider. * * @return true if this Location came from a mock provider, false otherwise |