mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Rename AttractionListFragment
This commit is contained in:
		
							parent
							
								
									a6da5a9366
								
							
						
					
					
						commit
						5ca298dd4f
					
				
					 2 changed files with 2 additions and 12 deletions
				
			
		|  | @ -1,13 +1,11 @@ | |||
| package fr.free.nrw.commons.nearby; | ||||
| 
 | ||||
| import android.app.ListActivity; | ||||
| import android.content.Context; | ||||
| import android.location.Criteria; | ||||
| import android.location.Location; | ||||
| import android.location.LocationListener; | ||||
| import android.location.LocationManager; | ||||
| import android.os.Bundle; | ||||
| import android.app.Activity; | ||||
| import android.support.v7.app.AppCompatActivity; | ||||
| import android.util.Log; | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,26 +31,18 @@ import java.util.Collections; | |||
| import java.util.Comparator; | ||||
| import java.util.List; | ||||
| 
 | ||||
| /** | ||||
|  * The main tourist attraction fragment which contains a list of attractions | ||||
|  * sorted by distance (contained inside | ||||
|  * {@link com.example.android.xyztouristattractions.ui.AttractionListActivity}). | ||||
|  */ | ||||
| public class AttractionListFragment extends Fragment { | ||||
| public class NearbyListFragment extends Fragment { | ||||
| 
 | ||||
|     private AttractionAdapter mAdapter; | ||||
|     private LatLng mLatestLocation; | ||||
|     private int mImageSize; | ||||
|     private boolean mItemClicked; | ||||
| 
 | ||||
|     public AttractionListFragment() {} | ||||
|     public NearbyListFragment() {} | ||||
| 
 | ||||
|     @Override | ||||
|     public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||||
|                              Bundle savedInstanceState) { | ||||
|         // Load a larger size image to make the activity transition to the detail screen smooth | ||||
|         mImageSize = getResources().getDimensionPixelSize(R.dimen.image_size) | ||||
|                 * Constants.IMAGE_ANIM_MULTIPLIER; | ||||
| 
 | ||||
|         mLatestLocation = Utils.getLocation(getActivity()); | ||||
|         List<Attraction> attractions = loadAttractionsFromLocation(mLatestLocation); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan