better break check
This commit is contained in:
parent
f7d5c11e1c
commit
4ba9538aa2
1 changed files with 2 additions and 2 deletions
|
@ -213,9 +213,9 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
|
|||
amenityList.remove(amenityList.size() - 1);
|
||||
}
|
||||
}
|
||||
if (amenityList.size() == 0 && isAutomaticallyIncreaseSearch() && !SearchPOIActivity.stopSearching) {
|
||||
if (amenityList.size() == 0 && isAutomaticallyIncreaseSearch()) {
|
||||
int step = 5;
|
||||
while (amenityList.size() == 0 && step-- > 0 && isSearchFurtherAvailable()) {
|
||||
while (amenityList.size() == 0 && step-- > 0 && isSearchFurtherAvailable() && !SearchPOIActivity.stopSearching) {
|
||||
amenityList = searchFurther(lat, lon, matcher);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue