small fix

This commit is contained in:
Hardy 2019-12-15 17:29:48 +01:00 committed by GitHub
parent e6a34876e3
commit 57b66a1bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,7 +364,7 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
//Hardy, 2019-12-15: Inject A-GPS data if backToLocationImpl fails with no fix: //Hardy, 2019-12-15: Inject A-GPS data if backToLocationImpl fails with no fix:
if (app.getSettings().isInternetConnectionAvailable(true)) { if (app.getSettings().isInternetConnectionAvailable(true)) {
locationProvider.redownloadAGPS(); locationProvider.redownloadAGPS();
app.showToastMessage(R.string.unknown_location + "\n\n" + app.getString(R.string.agps_data_last_downloaded, (new SimpleDateFormat("yyyy-MM-dd HH:mm")).format(app.getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.get()))); app.showToastMessage(app.getString(R.string.unknown_location) + "\n\n" + app.getString(R.string.agps_data_last_downloaded, (new SimpleDateFormat("yyyy-MM-dd HH:mm")).format(app.getSettings().AGPS_DATA_LAST_TIME_DOWNLOADED.get())));
} else { } else {
app.showToastMessage(R.string.unknown_location); app.showToastMessage(R.string.unknown_location);
} }