mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Modify listview, add button for debugging
This commit is contained in:
		
							parent
							
								
									d2e1c50fc5
								
							
						
					
					
						commit
						b779ec097d
					
				
					 2 changed files with 20 additions and 8 deletions
				
			
		|  | @ -71,12 +71,14 @@ public class NearbyListFragment extends ListFragment { | |||
|         mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation(); | ||||
|         //FIXME: Hardcoding mLatestLocation to Michigan for testing | ||||
|         //mLatestLocation = new LatLng(44.182205, -84.506836); | ||||
|         places = loadAttractionsFromLocation(mLatestLocation); | ||||
| 
 | ||||
|         final ListView listview = (ListView) view.findViewById(R.id.listview); | ||||
|         places = loadAttractionsFromLocation(mLatestLocation); | ||||
|         mAdapter = new NearbyAdapter(getActivity(), places); | ||||
| 
 | ||||
|         ListView listview = (ListView) view.findViewById(R.id.listview); | ||||
|         //setListAdapter(mAdapter); | ||||
|         listview.setAdapter(mAdapter); | ||||
| 
 | ||||
|         Log.d(TAG, "Adapter set to ListView"); | ||||
|         mAdapter.notifyDataSetChanged(); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan