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

Commit abc69eae authored by Wyatt Riley's avatar Wyatt Riley
Browse files

Only download Xtra on boot, if supported

Bug: 64451746
Test: Confirmed download on boot happens on bullhead, but not Pixel
Change-Id: Id91997a34a62ef7e630bc42d5bc172b569a739d7
parent 668feb25
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -461,8 +461,11 @@ public class GnssLocationProvider implements LocationProviderInterface {
                requestUtcTime();
            }
            if (mDownloadXtraDataPending == STATE_PENDING_NETWORK) {
                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);
        }