aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-09-20 18:30:52 +0200
committerrsudev <rasch@munin-soft.de>2014-09-20 18:30:52 +0200
commitbce2a45441b2b3852f989f532381c5359ab91026 (patch)
tree8dc825a3cc54ec428cfd201b8a6467d7f8b82967 /main/src/cgeo/geocaching/connector
parent18499aab0d6722b20011f07ad2cac08ff3e64db9 (diff)
parent0c1328683401061a5d8e0ec056eb79658178eada (diff)
downloadcgeo-bce2a45441b2b3852f989f532381c5359ab91026.zip
cgeo-bce2a45441b2b3852f989f532381c5359ab91026.tar.gz
cgeo-bce2a45441b2b3852f989f532381c5359ab91026.tar.bz2
Merge branch 'release'
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r--main/src/cgeo/geocaching/connector/ox/OXGPXParser.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java b/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java
index 5f11a11..7896826 100644
--- a/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java
+++ b/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java
@@ -10,13 +10,13 @@ public class OXGPXParser extends GPX10Parser {
private final boolean isDetailed;
- public OXGPXParser(int listIdIn, boolean isDetailed) {
+ public OXGPXParser(final int listIdIn, final boolean isDetailed) {
super(listIdIn);
this.isDetailed = isDetailed;
}
@Override
- protected void afterParsing(Geocache cache) {
+ protected void afterParsing(final Geocache cache) {
cache.setUpdated(System.currentTimeMillis());
if (isDetailed) {
cache.setDetailedUpdate(cache.getUpdated());
@@ -27,11 +27,11 @@ public class OXGPXParser extends GPX10Parser {
/**
* The short description of OX caches contains "title by owner, type(T/D/Awesomeness)". That is a lot of
- * duplication.
+ * duplication. Additionally a space between type and (T/D/Awesomeness) is introduced.
*
* @param cache
*/
private static void removeTitleFromShortDescription(final @NonNull Geocache cache) {
- cache.setShortDescription(StringUtils.trim(StringUtils.substringAfterLast(cache.getShortDescription(), ",")));
+ cache.setShortDescription(StringUtils.replace(StringUtils.trim(StringUtils.substringAfterLast(cache.getShortDescription(), ",")), "(", " ("));
}
}