diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java b/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java index c452406c7..7b4ed12e5 100644 --- a/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java +++ b/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java @@ -1386,8 +1386,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment setProgressBarVisibility(false); presenter.lockUnlockNearby(false); } else { - updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng, - true); + updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, true); lastFocusLocation = searchLatLng; lastMapFocus = new GeoPoint(searchLatLng.getLatitude(), searchLatLng.getLongitude()); @@ -1430,8 +1429,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment // curLatLng is used to calculate distance from the current location to the place // and distance is later on populated to the place - updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng, - false); + updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, false); lastMapFocus = new GeoPoint(searchLatLng.getLatitude(), searchLatLng.getLongitude()); stopQuery();