aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 628c012..54b863c 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -1787,16 +1787,14 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
return;
}
- SearchResult searchToUse = search;
-
// apply filter settings (if there's a filter)
Set<String> geocodes = new HashSet<String>();
for (cgCache cache : adapter.getFilteredList()) {
geocodes.add(cache.getGeocode());
}
- searchToUse = new SearchResult(geocodes);
- int count = searchToUse.getCount();
+ final SearchResult searchToUse = new SearchResult(geocodes);
+ final int count = searchToUse.getCount();
String mapTitle = title;
if (count > 0) {
mapTitle = title + " [" + count + "]";