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:
Wyatt Riley
2017-08-08 15:15:28 -07:00
parent 668feb252a
commit abc69eaec5

View File

@@ -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);