mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
Nearby: Search for actual map center
This commit is contained in:
parent
7479767266
commit
a19ce3e208
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue