mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add check for size of places
This commit is contained in:
parent
df11e65806
commit
4af6dbd5e2
1 changed files with 7 additions and 5 deletions
|
|
@ -318,10 +318,12 @@ public class NearbyListFragment extends ListFragment implements TaskListener {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < 500; i++) {
|
if (places.size() > 0) {
|
||||||
Place place = places.get(i);
|
for (int i = 0; i < 100; i++) {
|
||||||
String distance = formatDistanceBetween(mLatestLocation, place.location);
|
Place place = places.get(i);
|
||||||
place.setDistance(distance);
|
String distance = formatDistanceBetween(mLatestLocation, place.location);
|
||||||
|
place.setDistance(distance);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return places;
|
return places;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue