mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Implement onActivityResult() in map fragment
This commit is contained in:
		
							parent
							
								
									fe430699b4
								
							
						
					
					
						commit
						da7916069f
					
				
					 3 changed files with 26 additions and 5 deletions
				
			
		|  | @ -77,10 +77,11 @@ public class ContributionController { | |||
|         //FIXME: Starts gallery (opens Google Photos) | ||||
|         Intent pickImageIntent = new Intent(ACTION_GET_CONTENT); | ||||
|         pickImageIntent.setType("image/*"); | ||||
|         Timber.d("startGalleryPick() called with pickImageIntent"); | ||||
|         fragment.startActivityForResult(pickImageIntent, SELECT_FROM_GALLERY); | ||||
|     } | ||||
| 
 | ||||
|     void handleImagePicked(int requestCode, Intent data) { | ||||
|     public void handleImagePicked(int requestCode, Intent data) { | ||||
|         FragmentActivity activity = fragment.getActivity(); | ||||
|         Intent shareIntent = new Intent(activity, ShareActivity.class); | ||||
|         shareIntent.setAction(ACTION_SEND); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan