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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user