From b1ad3c5625690be53a3d0fc303e57927835996c3 Mon Sep 17 00:00:00 2001 From: Soonil Nagarkar Date: Wed, 9 Dec 2020 09:39:25 -0800 Subject: Restore get/setExtras per API council feedback These methods are still valuable enough they shouldn't be deprecated. Bug: 173712888 Test: none Change-Id: I47b46e0db95c0fb29c2a73fb5355d9f9ce21c6df --- location/java/android/location/Location.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'location/java') diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index 47ecbd80a07f..a7e9a0de538a 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -1049,11 +1049,7 @@ public class Location implements Parcelable { * - * - * @deprecated Do not use. For GNSS related information, prefer listening for GNSS status - * information via {@link LocationManager}. */ - @Deprecated public Bundle getExtras() { return mExtras; } @@ -1063,10 +1059,7 @@ public class Location implements Parcelable { * *

Note this stores a copy of the given extras, so any changes to extras after calling this * method won't be reflected in the location bundle. - * - * @deprecated Do not use. */ - @Deprecated public void setExtras(@Nullable Bundle extras) { mExtras = (extras == null) ? null : new Bundle(extras); } -- cgit v1.2.3-59-g8ed1b