diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-05-30 19:32:13 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-05-30 19:32:13 +0200 |
| commit | 40f7b4a647ff447651b36bb978ca3a305427c9f3 (patch) | |
| tree | fc0a39d498932c002c412bf1860d961bf4ac0e3a /main/src | |
| parent | aa54065497521efc43d43fc102536bd8e0ad8732 (diff) | |
| parent | 344041de9de6f26fb13f5cb9022fd2b3a4d0c95a (diff) | |
| download | cgeo-40f7b4a647ff447651b36bb978ca3a305427c9f3.zip cgeo-40f7b4a647ff447651b36bb978ca3a305427c9f3.tar.gz cgeo-40f7b4a647ff447651b36bb978ca3a305427c9f3.tar.bz2 | |
Merge branch 'release' into upstream
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 37ddd73..44b35b6 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -1456,11 +1456,16 @@ public abstract class GCParser { Log.e("GCParser.loadLogsFromDetails: failed to parse log date."); } + // TODO: we should update our log data structure to be able to record + // proper coordinates, and make them clickable. In the meantime, it is + // better to integrate those coordinates into the text rather than not + // display them as all. + final String latLon = entry.getString("LatLonString"); final LogEntry logDone = new LogEntry( entry.getString("UserName"), date, LogType.getByIconName(logIconName), - entry.getString("LogText")); + (StringUtils.isEmpty(latLon) ? "" : (latLon + "<br/><br/>")) + entry.getString("LogText")); logDone.found = entry.getInt("GeocacheFindCount"); logDone.friend = friends; |
