diff options
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/cgCache.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index cdd0fc3..1479fec 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -577,4 +577,13 @@ public class cgCache implements ICache { } return nameForSorting; } + + public boolean isVirtual() { + return CacheType.VIRTUAL.id.equalsIgnoreCase(type) || CacheType.WEBCAM.id.equalsIgnoreCase(type) + || CacheType.EARTH.id.equalsIgnoreCase(type); + } + + public boolean showSize() { + return !((isEventCache() || isVirtual()) && size == CacheSize.NOT_CHOSEN); + } } |
