Only download Xtra on boot, if supported
Bug: 64451746 Test: Confirmed download on boot happens on bullhead, but not Pixel Change-Id: Id91997a34a62ef7e630bc42d5bc172b569a739d7
This commit is contained in:
@@ -461,7 +461,10 @@ public class GnssLocationProvider implements LocationProviderInterface {
|
||||
requestUtcTime();
|
||||
}
|
||||
if (mDownloadXtraDataPending == STATE_PENDING_NETWORK) {
|
||||
xtraDownloadRequest();
|
||||
if (mSupportsXtra) {
|
||||
// Download only if supported, (prevents an unneccesary on-boot download)
|
||||
xtraDownloadRequest();
|
||||
}
|
||||
}
|
||||
// Always on, notify HAL so it can get data it needs
|
||||
sendMessage(UPDATE_NETWORK_STATE, 0 /*arg*/, network);
|
||||
|
||||
Reference in New Issue
Block a user