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

Commit d1b3429c 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

am: 566987a3

Change-Id: If27d5bbe87613a6c977787b668429359616391c1
parents 1673d220 566987a3
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.",