remove agps test code, issue seesm fixed
This commit is contained in:
parent
c0413191bf
commit
8706cb6aa7
2 changed files with 6 additions and 6 deletions
|
@ -233,9 +233,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);
|
||||
//for debugging only: try catch issue here where A-GPS data sometimes seems destroyed but not reloaded
|
||||
//} else {
|
||||
// app.getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(0L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,9 +117,9 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
getMyApplication().getLocationProvider().redownloadAGPS();
|
||||
if(getMyApplication().getLocationProvider().agpsDownloaded() == true) {
|
||||
getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(System.currentTimeMillis());
|
||||
} else {
|
||||
//try catch issue here where A-GPS data sometimes seems destroyed but not reloaded
|
||||
getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(0L);
|
||||
//for debugging only: try catch issue here where A-GPS data sometimes seems destroyed but not reloaded
|
||||
//} else {
|
||||
// getMyApplication().getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.set(0L);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue