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

Commit 4c958d0e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents d5a1bb62 2649108d
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.",