aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-09-20 15:52:24 +0200
committerrsudev <rasch@munin-soft.de>2014-09-20 15:52:24 +0200
commitd9e81b99e4d097a33a830ec98a52fa6e7b32af39 (patch)
tree2a9c0fabb729ee6b1bb4cf3ac4e6a12379347106
parent33c651f59a8e86361687e6408420b397d544d74d (diff)
downloadcgeo-d9e81b99e4d097a33a830ec98a52fa6e7b32af39.zip
cgeo-d9e81b99e4d097a33a830ec98a52fa6e7b32af39.tar.gz
cgeo-d9e81b99e4d097a33a830ec98a52fa6e7b32af39.tar.bz2
Fixes #4370, OX caches should have blank before rating
-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(), ",")), "(", " ("));
}
}