aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-03-02 23:50:49 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-03-02 23:50:49 +0100
commit2bc6d47bc99c5bd8eb3c872aebb0ba85d9f74702 (patch)
tree8ecb98bdc85a4807fa4306257499dfb5f7864b86 /main/src
parent302380944fc224af7de00dfefb5e847be347076a (diff)
downloadcgeo-2bc6d47bc99c5bd8eb3c872aebb0ba85d9f74702.zip
cgeo-2bc6d47bc99c5bd8eb3c872aebb0ba85d9f74702.tar.gz
cgeo-2bc6d47bc99c5bd8eb3c872aebb0ba85d9f74702.tar.bz2
fix failing test
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/enumerations/LogType.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/LogType.java b/main/src/cgeo/geocaching/enumerations/LogType.java
index edd39ae..3240e8f 100644
--- a/main/src/cgeo/geocaching/enumerations/LogType.java
+++ b/main/src/cgeo/geocaching/enumerations/LogType.java
@@ -87,6 +87,11 @@ public enum LogType {
}
public static LogType getByIconName(final String imageType) {
+ // Special case for post reviewer note, which appears sometimes as 18.png (in individual entries) or as 68.png
+ // (in logs counts).
+ if ("68".equals(imageType)) {
+ return POST_REVIEWER_NOTE;
+ }
final LogType result = imageType != null ? LogType.FIND_BY_ICONNAME.get(imageType.toLowerCase(Locale.US).trim()) : null;
if (result == null) {
return UNKNOWN;