mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Fix adapter crash
This commit is contained in:
parent
2f4036c4a7
commit
0b71f7b017
1 changed files with 3 additions and 3 deletions
|
|
@ -73,12 +73,12 @@ public class NearbyListFragment extends ListFragment {
|
|||
mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation();
|
||||
//Hardcoding mLatestLocation to Michigan for testing
|
||||
//mLatestLocation = new LatLng(44.182205, -84.506836);
|
||||
|
||||
|
||||
getNearbyPlaces nearbyList = new getNearbyPlaces();
|
||||
nearbyList.execute();
|
||||
|
||||
Log.d(TAG, "Adapter set to ListView");
|
||||
mAdapter.notifyDataSetChanged();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ public class NearbyListFragment extends ListFragment {
|
|||
ListView listview = (ListView) getView().findViewById(R.id.listview);
|
||||
//setListAdapter(mAdapter);
|
||||
listview.setAdapter(mAdapter);
|
||||
|
||||
mAdapter.notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue