diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java index 00e49b789c..a3f9f09c54 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java @@ -214,7 +214,7 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable } if (amenityList.size() == 0 && isAutomaticallyIncreaseSearch()) { int step = 5; - while (amenityList.size() == 0 && step-- > 0 && isSearchFurtherAvailable() && !SearchPOIActivity.stopSearching) { + while (amenityList.size() == 0 && step-- > 0 && isSearchFurtherAvailable()) { amenityList = searchFurther(lat, lon, matcher); } }