Test for sorting - it works

This commit is contained in:
misaochan 2016-08-26 18:46:01 +12:00
parent 5953395fa2
commit 8adb257e97
2 changed files with 5 additions and 3 deletions

View file

@ -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);

View file

@ -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++;