mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Merge branch 'master' into directNearbyUploadsNew
This commit is contained in:
		
						commit
						50d9cff8c6
					
				
					 152 changed files with 2687 additions and 945 deletions
				
			
		|  | @ -300,7 +300,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
|         LatLng lastLocation = locationManager.getLastLocation(); | ||||
| 
 | ||||
|         if (curLatLang != null && curLatLang.equals(lastLocation)) { //refresh view only if location has changed | ||||
| 
 | ||||
|             return; | ||||
|         } | ||||
|         curLatLang = lastLocation; | ||||
|  | @ -340,9 +339,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
|         String gsonBoundaryCoordinates = gson.toJson(boundaryCoordinates); | ||||
| 
 | ||||
|         if (placeList.size() == 0) { | ||||
|             int duration = Toast.LENGTH_SHORT; | ||||
|             Toast toast = Toast.makeText(this, R.string.no_nearby, duration); | ||||
|             toast.show(); | ||||
|             ViewUtil.showSnackbar(findViewById(R.id.container), R.string.no_nearby); | ||||
|         } | ||||
| 
 | ||||
|         bundle.clear(); | ||||
|  |  | |||
|  | @ -144,9 +144,9 @@ public class PlaceRenderer extends Renderer<Place> { | |||
|         place = getContent(); | ||||
|         tvName.setText(place.name); | ||||
|         String descriptionText = place.getLongDescription(); | ||||
| 
 | ||||
|         if (descriptionText.equals("?")) { | ||||
|             descriptionText = getContext().getString(R.string.no_description_found); | ||||
|             tvDesc.setVisibility(View.INVISIBLE); | ||||
|         } | ||||
|         tvDesc.setText(descriptionText); | ||||
|         distance.setText(place.distance); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vivek Maskara
						Vivek Maskara