mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Add comments
This commit is contained in:
		
							parent
							
								
									dfbc0ffea8
								
							
						
					
					
						commit
						43fc4d7427
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -72,8 +72,9 @@ public class ContributionController { | |||
|         shareIntent.setAction(Intent.ACTION_SEND); | ||||
|         switch(requestCode) { | ||||
|             case SELECT_FROM_GALLERY: | ||||
|                 //FIXME: Handles image picked from gallery (from Google Photos) | ||||
|                 //Handles image picked from gallery | ||||
|                 Uri imageData = data.getData(); | ||||
|                 //TODO: Check SHA1 hash of image data here? | ||||
|                 shareIntent.setType(activity.getContentResolver().getType(imageData)); | ||||
|                 shareIntent.putExtra(Intent.EXTRA_STREAM, imageData); | ||||
|                 shareIntent.putExtra(UploadService.EXTRA_SOURCE, fr.free.nrw.commons.contributions.Contribution.SOURCE_GALLERY); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan