diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index cfebfbb765..7539c94eb8 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -9,6 +9,8 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
+ A-GPS info
+ A-GPS data last downloaded: %1$s
In many countries (Germany, France, Italy, and others) the use of speed camera warnings is not permitted by law. OsmAnd does assume any liability if you violate the law. Please click yes only if you are eligible to use this feature.
Download maps
Select your region
diff --git a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java
index f08357c565..9fd07beb06 100644
--- a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java
+++ b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java
@@ -98,6 +98,20 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
//pref.setEnabled(false);
cat.addPreference(pref);
+ long agpsLastDonwloaded = settings.AGPS_DATA_LAST_TIME_DOWNLOADED.get();
+ pref = new Preference(this);
+ pref.setTitle(R.string.agps_info);
+ if (agpsLastDonwloaded != null) {
+ SimpleDateFormat prt = new SimpleDateFormat("yyyy-MM-dd HH:mm");
+ pref.setSummary(getString(R.string.agps_data_last_downloaded, prt.format(agpsLastDonwloaded))));
+ } else {
+ pref.setSummary(getString(R.string.agps_data_last_downloaded, "null",
+ "null"));
+ }
+ pref.setSelectable(false);
+ //setEnabled(false) creates bad readability on some devices
+ //pref.setEnabled(false);
+ cat.addPreference(pref);
SunriseSunset sunriseSunset = getMyApplication().getDaynightHelper().getSunriseSunset();
pref = new Preference(this);
@@ -107,8 +121,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
pref.setSummary(getString(R.string.day_night_info_description, prt.format(sunriseSunset.getSunrise()),
prt.format(sunriseSunset.getSunset())));
} else {
- pref.setSummary(getString(R.string.day_night_info_description, "null",
- "null"));
+ pref.setSummary(getString(R.string.day_night_info_description, "null"));
}
pref.setSelectable(false);
//setEnabled(false) creates bad readability on some devices