remove agps test code, issue seesm fixed

This commit is contained in:
sonora 2015-04-12 11:52:53 +02:00
parent c0413191bf
commit 8706cb6aa7
2 changed files with 6 additions and 6 deletions

View file

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

View file

@ -117,9 +117,9 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
getMyApplication().getLocationProvider().redownloadAGPS(); getMyApplication().getLocationProvider().redownloadAGPS();
if(getMyApplication().getLocationProvider().agpsDownloaded() == true) { if(getMyApplication().getLocationProvider().agpsDownloaded() == true) {
getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(System.currentTimeMillis()); getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(System.currentTimeMillis());
} else { //for debugging only: try catch issue here where A-GPS data sometimes seems destroyed but not reloaded
//try catch issue here where A-GPS data sometimes seems destroyed but not reloaded //} else {
getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(0L); // getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(0L);
} }
} }
return true; return true;