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

Commit 45cc8691 authored by Soonil Nagarkar's avatar Soonil Nagarkar Committed by Android (Google) Code Review
Browse files

Merge "Remove logspam"

parents 5e68b5c7 76b1d81b
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1838,12 +1838,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();