research issue where A-GPS data sometimes seems destroyed but not reloaded

This commit is contained in:
sonora 2015-04-12 10:15:58 +02:00
parent b02f2a01b1
commit bd89843fb5

View file

@ -229,6 +229,9 @@ public class OsmAndLocationProvider implements SensorEventListener {
redownloadAGPS();
if(agpsDownloaded == true) {
app.getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(time);
} else {
//try catch issue here where A-GPS data sometimes seems destroyed but not reloaded
app.getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(0L);
}
}
}