Skip to content

Commit 7a633ef

Browse files
committed
Nearby pins now load starting from the center
Fixes commons-app#6049
1 parent e70db14 commit 7a633ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,7 @@ private void populatePlacesForCurrentLocation(
13861386
setProgressBarVisibility(false);
13871387
presenter.lockUnlockNearby(false);
13881388
} else {
1389-
updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng,
1390-
true);
1389+
updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, true);
13911390
lastFocusLocation = searchLatLng;
13921391
lastMapFocus = new GeoPoint(searchLatLng.getLatitude(),
13931392
searchLatLng.getLongitude());
@@ -1430,8 +1429,7 @@ private void populatePlacesForAnotherLocation(
14301429

14311430
// curLatLng is used to calculate distance from the current location to the place
14321431
// and distance is later on populated to the place
1433-
updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng,
1434-
false);
1432+
updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, false);
14351433
lastMapFocus = new GeoPoint(searchLatLng.getLatitude(),
14361434
searchLatLng.getLongitude());
14371435
stopQuery();

0 commit comments

Comments
 (0)