mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 08:43:52 +01:00 
			
		
		
		
	Make controller method public and add call to initiateCameraUpload() in NearbyMapFragment
This commit is contained in:
		
							parent
							
								
									050d878edd
								
							
						
					
					
						commit
						bbe58f003f
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -401,7 +401,11 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
 | 
			
		|||
        distance.setText(place.distance.toString());
 | 
			
		||||
 | 
			
		||||
        fabCamera.setOnClickListener(view -> {
 | 
			
		||||
            //TODO: Implement camera button
 | 
			
		||||
            Timber.d("Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
 | 
			
		||||
            controller = new ContributionController(this);
 | 
			
		||||
            DirectUpload directUpload = new DirectUpload(place.getName(), place.getLongDescription(), this, controller);
 | 
			
		||||
            directUpload.storeSharedPrefs();
 | 
			
		||||
            directUpload.initiateCameraUpload();
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        fabGallery.setOnClickListener(view -> {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue