From a19ce3e20854bf0f2404e75feef723327c287732 Mon Sep 17 00:00:00 2001 From: savsch Date: Mon, 23 Dec 2024 17:28:52 +0530 Subject: [PATCH] Nearby: Search for actual map center --- .../commons/nearby/fragments/NearbyParentFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ab3d9a049..531871b1b 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 @@ -1101,19 +1101,19 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment eastCornerLong, 0); if (currentLatLng.equals( getLastMapFocus())) { // Means we are checking around current location - populatePlacesForCurrentLocation(getLastMapFocus(), screenTopRightLatLng, + populatePlacesForCurrentLocation(getMapFocus(), screenTopRightLatLng, screenBottomLeftLatLng, currentLatLng, null); } else { - populatePlacesForAnotherLocation(getLastMapFocus(), screenTopRightLatLng, + populatePlacesForAnotherLocation(getMapFocus(), screenTopRightLatLng, screenBottomLeftLatLng, currentLatLng, null); } } else { if (currentLatLng.equals( getLastMapFocus())) { // Means we are checking around current location - populatePlacesForCurrentLocation(getLastMapFocus(), screenTopRightLatLng, + populatePlacesForCurrentLocation(getMapFocus(), screenTopRightLatLng, screenBottomLeftLatLng, currentLatLng, null); } else { - populatePlacesForAnotherLocation(getLastMapFocus(), screenTopRightLatLng, + populatePlacesForAnotherLocation(getMapFocus(), screenTopRightLatLng, screenBottomLeftLatLng, currentLatLng, null); } }