mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Improve debug logging in ContributionController
This commit is contained in:
		
							parent
							
								
									967c9bb54b
								
							
						
					
					
						commit
						4f74aaed15
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -80,11 +80,12 @@ 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"); | ||||
|         // See https://stackoverflow.com/questions/22366596/android-illegalstateexception-fragment-not-attached-to-activity-webview | ||||
|         if (!fragment.isAdded()) { | ||||
|             Timber.d("Fragment is not added, startActivityForResult cannot be called"); | ||||
|             return; | ||||
|         } | ||||
|         Timber.d("startGalleryPick() called with pickImageIntent"); | ||||
|         fragment.startActivityForResult(pickImageIntent, SELECT_FROM_GALLERY); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan