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

Commit 566987a3 authored by Yu-Han Yang's avatar Yu-Han Yang Committed by android-build-merger
Browse files

Merge "Check provider exists and is enabled when request location" into pi-dev

am: 4c958d0e

Change-Id: I206e7a4a0ff3990ea8cf94decb6112c769e545f8
parents 67c9f1ea 4c958d0e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1063,6 +1063,12 @@ public class GnssLocationProvider implements LocationProviderInterface, InjectNt
            locationListener = mFusedLocationListener;
        }

        if (!locationManager.isProviderEnabled(provider)) {
            Log.w(TAG, "Unable to request location since " + provider
                    + " provider does not exist or is not enabled.");
            return;
        }

        Log.i(TAG,
                String.format(
                        "GNSS HAL Requesting location updates from %s provider for %d millis.",