aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
-rw-r--r--main/src/cgeo/geocaching/cgCache.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java
index 36fd064..f2a773d 100644
--- a/main/src/cgeo/geocaching/cgCache.java
+++ b/main/src/cgeo/geocaching/cgCache.java
@@ -99,7 +99,7 @@ public class cgCache implements ICache, IWaypoint {
private String nameForSorting;
private final EnumSet<StorageLocation> storageLocation = EnumSet.of(StorageLocation.HEAP);
private boolean finalDefined = false;
- private int zoomlevel = Tile.ZOOMLEVEL_MAX;
+ private int zoomlevel = Tile.ZOOMLEVEL_MAX + 1;
private static final Pattern NUMBER_PATTERN = Pattern.compile("\\d+");
@@ -401,8 +401,7 @@ public class cgCache implements ICache, IWaypoint {
}
public boolean isEventCache() {
- return CacheType.EVENT == cacheType || CacheType.MEGA_EVENT == cacheType
- || CacheType.CITO == cacheType || CacheType.LOSTANDFOUND == cacheType;
+ return cacheType.isEvent();
}
public boolean logVisit(IAbstractActivity fromActivity) {
@@ -1401,10 +1400,6 @@ public class cgCache implements ICache, IWaypoint {
cgBase.storeCache(activity, this, null, listId, false, handler);
}
- public int getZoomlevel() {
- return this.zoomlevel;
- }
-
public void setZoomlevel(int zoomlevel) {
this.zoomlevel = zoomlevel;
}