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

Commit 5f549c40 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

DO NOT MERGE: Move updateSatelliteBlacklist after handleInitialize

- updateSatelliteBlacklist should be called after HAL initialization is
done.
- The bug is likely triggered after ag/11960757 where the initialization
order changed.

Bug: 161443390
Test: on device

Change-Id: If771783b8be22b08631bee6fe2e8b575956597cd
parent 274ce444
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -718,7 +718,6 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
        GnssSatelliteBlacklistHelper gnssSatelliteBlacklistHelper =
                new GnssSatelliteBlacklistHelper(mContext,
                        mLooper, this);
        mHandler.post(gnssSatelliteBlacklistHelper::updateSatelliteBlacklist);
        mGnssBatchingProvider = new GnssBatchingProvider();
        mGnssGeofenceProvider = new GnssGeofenceProvider();

@@ -746,6 +745,7 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
        setAllowed(true);

        sendMessage(INITIALIZE_HANDLER, 0, null);
        mHandler.post(gnssSatelliteBlacklistHelper::updateSatelliteBlacklist);
    }

    /**