summaryrefslogtreecommitdiff
path: root/location
diff options
context:
space:
mode:
authorSoonil Nagarkar <sooniln@google.com>2020-01-24 13:12:41 -0800
committerSoonil Nagarkar <sooniln@google.com>2020-01-24 13:32:26 -0800
commit56a2a445372e47cccdbf35249142adfaa44af6cb (patch)
tree151a9549a8f8a95ed0f7b512680bb97ffe0a95ff /location
parent4b0dec268d45ec89d884fe0e054cf255af8eee8a (diff)
Remove setLocationExtra per API feedback
Bug: 142828735 Test: atest LocationManagerFineTest Change-Id: I73193dc2484a2b8051c5cff42cd3fcec9a44a015
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/Location.java18
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