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

Commit 3cbd8bb2 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Fix passive request for NLP

Bug: 176126343
Fixes: 176126343
Test: manual on device.
Change-Id: I889865f0c326fa64eebad54c0d11a4e0f912ee8f
parent 12f7e5a7
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)