Nearby pins now load starting from the center

Fixes #6049
This commit is contained in:
savsch 2024-12-20 14:24:53 +05:30
parent e70db1476c
commit 7a633efde1

View file

@ -1386,8 +1386,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
setProgressBarVisibility(false); setProgressBarVisibility(false);
presenter.lockUnlockNearby(false); presenter.lockUnlockNearby(false);
} else { } else {
updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng, updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, true);
true);
lastFocusLocation = searchLatLng; lastFocusLocation = searchLatLng;
lastMapFocus = new GeoPoint(searchLatLng.getLatitude(), lastMapFocus = new GeoPoint(searchLatLng.getLatitude(),
searchLatLng.getLongitude()); searchLatLng.getLongitude());
@ -1430,8 +1429,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
// curLatLng is used to calculate distance from the current location to the place // curLatLng is used to calculate distance from the current location to the place
// and distance is later on populated to the place // and distance is later on populated to the place
updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng, updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, false);
false);
lastMapFocus = new GeoPoint(searchLatLng.getLatitude(), lastMapFocus = new GeoPoint(searchLatLng.getLatitude(),
searchLatLng.getLongitude()); searchLatLng.getLongitude());
stopQuery(); stopQuery();