aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/SearchResult.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-01-31 07:30:23 +0100
committerBananeweizen <bananeweizen@gmx.de>2013-01-31 07:30:23 +0100
commit00b36f16e4768da7b252f31089ce1cfd19b2c2c6 (patch)
treec23db4a657680331eab1d67c87ea52eb1ef38708 /main/src/cgeo/geocaching/SearchResult.java
parenta47c952b407762d145636f2a867e2e47cf85c24d (diff)
downloadcgeo-00b36f16e4768da7b252f31089ce1cfd19b2c2c6.zip
cgeo-00b36f16e4768da7b252f31089ce1cfd19b2c2c6.tar.gz
cgeo-00b36f16e4768da7b252f31089ce1cfd19b2c2c6.tar.bz2
refactoring: simplify cache type checks
Diffstat (limited to 'main/src/cgeo/geocaching/SearchResult.java')
-rw-r--r--main/src/cgeo/geocaching/SearchResult.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/SearchResult.java b/main/src/cgeo/geocaching/SearchResult.java
index 9a2b3f7..557234a 100644
--- a/main/src/cgeo/geocaching/SearchResult.java
+++ b/main/src/cgeo/geocaching/SearchResult.java
@@ -197,7 +197,7 @@ public class SearchResult implements Parcelable {
// Is there any reason to exclude the cache from the list?
final boolean excludeCache = (excludeDisabled && cache.isDisabled()) ||
(excludeMine && (cache.isOwner() || cache.isFound())) ||
- (cacheType != CacheType.ALL && cacheType != cache.getType());
+ (!cacheType.contains(cache));
if (!excludeCache) {
result.addCache(cache);
cachesForVote.add(cache);