diff --git a/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java b/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java index a9a8a7ae3b..a027040e39 100644 --- a/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java +++ b/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java @@ -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); } } } diff --git a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java index fd077de2ee..acef1a1a8e 100644 --- a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java +++ b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java @@ -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;