mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Test for sorting - it works
This commit is contained in:
parent
5953395fa2
commit
8adb257e97
2 changed files with 5 additions and 3 deletions
|
|
@ -66,8 +66,10 @@ public class NearbyListFragment extends ListFragment {
|
|||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
|
||||
//Load from data source (NearbyPlaces.java)
|
||||
LatLng mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation();
|
||||
//FIXME: mLatestLocation not set. Hardcode it first for testing
|
||||
|
||||
//LatLng mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation();
|
||||
//FIXME: Hardcoding mLatestLocation to Michigan for testing
|
||||
LatLng mLatestLocation = new LatLng(44.182205, -84.506836);
|
||||
places = loadAttractionsFromLocation(mLatestLocation);
|
||||
|
||||
final ListView listview = (ListView) view.findViewById(R.id.listview);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class NearbyPlaces {
|
|||
int counter = 0;
|
||||
|
||||
//while ((line = in.readLine()) != null) {
|
||||
while (in.readLine() != null && counter < 110) {
|
||||
while (in.readLine() != null && counter < 500) {
|
||||
|
||||
line = in.readLine();
|
||||
counter++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue