Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76b1d81b authored by Soonil Nagarkar's avatar Soonil Nagarkar
Browse files

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
parent 809e21fc
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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();