mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Modify loadAttractionsFromLocation
This commit is contained in:
parent
ee27896589
commit
404e19e9d5
1 changed files with 4 additions and 4 deletions
|
|
@ -64,12 +64,12 @@ public class NearbyListFragment extends ListFragment {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private static List<Attraction> loadAttractionsFromLocation(final LatLng curLatLng) {
|
private static List<Place> loadAttractionsFromLocation(final LatLng curLatLng) {
|
||||||
//String closestCity = TouristAttractions.getClosestCity(curLatLng);
|
//String closestCity = TouristAttractions.getClosestCity(curLatLng);
|
||||||
//if (closestCity != null) {
|
//if (closestCity != null) {
|
||||||
List<Attraction> attractions = TouristAttractions.get();
|
List<Place> places = NearbyPlaces.get();
|
||||||
if (curLatLng != null) {
|
if (curLatLng != null) {
|
||||||
Collections.sort(attractions,
|
Collections.sort(places,
|
||||||
new Comparator<Attraction>() {
|
new Comparator<Attraction>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(Attraction lhs, Attraction rhs) {
|
public int compare(Attraction lhs, Attraction rhs) {
|
||||||
|
|
@ -82,7 +82,7 @@ public class NearbyListFragment extends ListFragment {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return attractions;
|
return places;
|
||||||
//}
|
//}
|
||||||
//return null;
|
//return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue