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

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

Merge "Fix passive request for NLP"

parents 2f1cedb3 3cbd8bb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -616,7 +616,7 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
        // permanently passively listen to all network locations
        LocationManager locationManager = Objects.requireNonNull(
                mContext.getSystemService(LocationManager.class));
        if (locationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) {
        if (locationManager.getAllProviders().contains(LocationManager.NETWORK_PROVIDER)) {
            locationManager.requestLocationUpdates(
                    LocationManager.NETWORK_PROVIDER,
                    new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL)