From 7595b69b01a2e43befb2565a23a9b3f6c8736160 Mon Sep 17 00:00:00 2001 From: rsudev Date: Sat, 6 Jul 2013 15:08:08 +0200 Subject: Fixes #2826, Found caches shown on live map Implemented detection and filtering for vanishing caches Added testcases for new functionality --- main/src/cgeo/geocaching/connector/ConnectorFactory.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'main/src/cgeo/geocaching/connector/ConnectorFactory.java') diff --git a/main/src/cgeo/geocaching/connector/ConnectorFactory.java b/main/src/cgeo/geocaching/connector/ConnectorFactory.java index c5a083c..eb09978 100644 --- a/main/src/cgeo/geocaching/connector/ConnectorFactory.java +++ b/main/src/cgeo/geocaching/connector/ConnectorFactory.java @@ -147,10 +147,7 @@ public final class ConnectorFactory { final SearchResult result = new SearchResult(); for (final ISearchByViewPort vpconn : searchByViewPortConns) { if (vpconn.isActivated()) { - final SearchResult temp = vpconn.searchByViewport(viewport, tokens); - if (temp != null) { - result.addGeocodes(temp.getGeocodes()); - } + result.addSearchResult(vpconn.searchByViewport(viewport, tokens)); } } return result; -- cgit v1.1