aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/SearchResult.java
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-05-03 21:24:41 +0200
committerrsudev <rasch@munin-soft.de>2014-05-03 21:24:41 +0200
commit1b089e06ca145842edf1717bef4dd6a25fcd88e0 (patch)
treeb4cd6109fd81c1a648a22588d7c73c0197eb9e22 /main/src/cgeo/geocaching/SearchResult.java
parent73a6f622ec617a95ab1969ad1b4135e20f296030 (diff)
downloadcgeo-1b089e06ca145842edf1717bef4dd6a25fcd88e0.zip
cgeo-1b089e06ca145842edf1717bef4dd6a25fcd88e0.tar.gz
cgeo-1b089e06ca145842edf1717bef4dd6a25fcd88e0.tar.bz2
Fixes #3698, Archived caches still shown on map
- filter archived as disabled on map - their waypoints as well - use disabled icon for archived on static maps - filter archived alongside disabled in SearchResult
Diffstat (limited to 'main/src/cgeo/geocaching/SearchResult.java')
-rw-r--r--main/src/cgeo/geocaching/SearchResult.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/SearchResult.java b/main/src/cgeo/geocaching/SearchResult.java
index 12a2522..5dfc0b7 100644
--- a/main/src/cgeo/geocaching/SearchResult.java
+++ b/main/src/cgeo/geocaching/SearchResult.java
@@ -12,6 +12,7 @@ import cgeo.geocaching.gcvote.GCVote;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.jdt.annotation.Nullable;
+
import rx.Observable;
import rx.functions.Func1;
import rx.functions.Func2;
@@ -218,7 +219,7 @@ public class SearchResult implements Parcelable {
int excluded = 0;
for (Geocache cache : caches) {
// Is there any reason to exclude the cache from the list?
- final boolean excludeCache = (excludeDisabled && cache.isDisabled()) ||
+ final boolean excludeCache = (excludeDisabled && (cache.isDisabled() || cache.isArchived())) ||
(excludeMine && (cache.isOwner() || cache.isFound())) ||
(!cacheType.contains(cache));
if (excludeCache) {