summaryrefslogtreecommitdiff
path: root/location
diff options
context:
space:
mode:
authorSoonil Nagarkar <sooniln@google.com>2019-12-10 13:42:18 -0800
committerSoonil Nagarkar <sooniln@google.com>2019-12-10 13:42:18 -0800
commit76b1d81bfe551e6334581828208f136b86e4afd1 (patch)
treee2f3f31a160e2fab2ca624ff3a544b988f37544b /location
parent809e21fc286f7bffdb6dd835b9931adb7748ba08 (diff)
Remove logspam
Remove upgrade message for getGpsStatus() which is called at a much greater frequency than register/unregister. Bug: 146003205 Test: n/a Change-Id: I32adde8a8cffa649d373fb394b06ef294481c6cf
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/LocationManager.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java
index 1f8c1d5352b0..e339e0a680f5 100644
--- a/location/java/android/location/LocationManager.java
+++ b/location/java/android/location/LocationManager.java
@@ -1837,12 +1837,9 @@ public class LocationManager {
@Deprecated
@RequiresPermission(ACCESS_FINE_LOCATION)
public @Nullable GpsStatus getGpsStatus(@Nullable GpsStatus status) {
- UnsupportedOperationException ex = new UnsupportedOperationException(
- "GpsStatus APIs not supported in S and above, use GnssStatus APIs instead");
if (mContext.getApplicationInfo().targetSdkVersion > Build.VERSION_CODES.R) {
- throw ex;
- } else {
- Log.w(TAG, ex);
+ throw new UnsupportedOperationException(
+ "GpsStatus APIs not supported in S and above, use GnssStatus APIs instead");
}
GnssStatus gnssStatus = mGnssStatusListenerManager.getGnssStatus();