File tree 1 file changed +2
-4
lines changed
app/src/main/java/fr/free/nrw/commons/nearby/fragments
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1386,8 +1386,7 @@ private void populatePlacesForCurrentLocation(
1386
1386
setProgressBarVisibility (false );
1387
1387
presenter .lockUnlockNearby (false );
1388
1388
} else {
1389
- updateMapMarkers (nearbyPlacesInfo .placeList , nearbyPlacesInfo .currentLatLng ,
1390
- true );
1389
+ updateMapMarkers (nearbyPlacesInfo .placeList , searchLatLng , true );
1391
1390
lastFocusLocation = searchLatLng ;
1392
1391
lastMapFocus = new GeoPoint (searchLatLng .getLatitude (),
1393
1392
searchLatLng .getLongitude ());
@@ -1430,8 +1429,7 @@ private void populatePlacesForAnotherLocation(
1430
1429
1431
1430
// curLatLng is used to calculate distance from the current location to the place
1432
1431
// and distance is later on populated to the place
1433
- updateMapMarkers (nearbyPlacesInfo .placeList , nearbyPlacesInfo .currentLatLng ,
1434
- false );
1432
+ updateMapMarkers (nearbyPlacesInfo .placeList , searchLatLng , false );
1435
1433
lastMapFocus = new GeoPoint (searchLatLng .getLatitude (),
1436
1434
searchLatLng .getLongitude ());
1437
1435
stopQuery ();
You can’t perform that action at this time.
0 commit comments