Nearby: Search for actual map center

This commit is contained in:
savsch 2024-12-23 17:28:52 +05:30
parent 7479767266
commit a19ce3e208

View file

@ -1101,19 +1101,19 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
eastCornerLong, 0); eastCornerLong, 0);
if (currentLatLng.equals( if (currentLatLng.equals(
getLastMapFocus())) { // Means we are checking around current location getLastMapFocus())) { // Means we are checking around current location
populatePlacesForCurrentLocation(getLastMapFocus(), screenTopRightLatLng, populatePlacesForCurrentLocation(getMapFocus(), screenTopRightLatLng,
screenBottomLeftLatLng, currentLatLng, null); screenBottomLeftLatLng, currentLatLng, null);
} else { } else {
populatePlacesForAnotherLocation(getLastMapFocus(), screenTopRightLatLng, populatePlacesForAnotherLocation(getMapFocus(), screenTopRightLatLng,
screenBottomLeftLatLng, currentLatLng, null); screenBottomLeftLatLng, currentLatLng, null);
} }
} else { } else {
if (currentLatLng.equals( if (currentLatLng.equals(
getLastMapFocus())) { // Means we are checking around current location getLastMapFocus())) { // Means we are checking around current location
populatePlacesForCurrentLocation(getLastMapFocus(), screenTopRightLatLng, populatePlacesForCurrentLocation(getMapFocus(), screenTopRightLatLng,
screenBottomLeftLatLng, currentLatLng, null); screenBottomLeftLatLng, currentLatLng, null);
} else { } else {
populatePlacesForAnotherLocation(getLastMapFocus(), screenTopRightLatLng, populatePlacesForAnotherLocation(getMapFocus(), screenTopRightLatLng,
screenBottomLeftLatLng, currentLatLng, null); screenBottomLeftLatLng, currentLatLng, null);
} }
} }