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

Commit 204406fb authored by Anil Admal's avatar Anil Admal
Browse files

Always reload GPS config when native GNSS service dies

Fixes: 138131595
Test: With location settings off, killed GNSS service
      verified GPS properties are reloaded, turned on
      location, requested GPS fix.

Change-Id: Iab09499d9f0b8d0bc58828f014428d881438cbef
parent bfda3a2b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1608,13 +1608,11 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
        if (DEBUG) Log.d(TAG, "reportGnssServiceDied");
        mHandler.post(() -> {
            setupNativeGnssService(/* reinitializeGnssServiceHandle = */ true);
            // resend configuration into the restarted HAL service.
            reloadGpsProperties();
            if (isGpsEnabled()) {
                setGpsEnabled(false);

                updateEnabled();

                // resend configuration into the restarted HAL service.
                reloadGpsProperties();
            }
        });
    }