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
This commit is contained in:
Yu-Han Yang
2020-07-16 12:52:15 -07:00
parent 274ce4442a
commit 5f549c40fc

View File

@@ -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);
}
/**