mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +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);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue