File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
location/java/com/android/internal/location Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
199199 // flags to trigger NTP or XTRA data download when network becomes available
200200 // initialized to true so we do NTP and XTRA when the network comes up after booting
201201 private boolean mInjectNtpTimePending = true ;
202- private boolean mDownloadXtraDataPending = true ;
202+ private boolean mDownloadXtraDataPending = false ;
203203
204204 // true if GPS is navigating
205205 private boolean mNavigating ;
@@ -522,7 +522,7 @@ private void handleInjectNtpTime() {
522522 }
523523
524524 private void handleDownloadXtraData () {
525- if (!mDownloadXtraDataPending ) {
525+ if (!mNetworkAvailable ) {
526526 // try again when network is up
527527 mDownloadXtraDataPending = true ;
528528 return ;
You can’t perform that action at this time.
0 commit comments