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

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

Merge "Check that network provider exists before use"

parents 25d0505f 4f860085
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -709,9 +709,11 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
                        "GNSS HAL Requesting location updates from %s provider for %d millis.",
                        provider, durationMillis));

        if (locationManager.getProvider(provider) != null) {
            locationManager.requestLocationUpdates(provider, locationRequest.build(),
                    DIRECT_EXECUTOR, locationListener);
        }
    }

    private void injectBestLocation(Location location) {
        if (DEBUG) {