mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Implement single selection logic in custom image picker (#6341)
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Android CI / Run tests and generate APK (push) Waiting to run
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	Android CI / Run tests and generate APK (push) Waiting to run
				
			* build failure cause * Fix image selector logic in custom picker
This commit is contained in:
		
							parent
							
								
									06a613e855
								
							
						
					
					
						commit
						f45f26e602
					
				
					 7 changed files with 45 additions and 22 deletions
				
			
		|  | @ -974,7 +974,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(), | |||
|             } else if (bottomSheetDetailsBehavior!!.state | ||||
|                 == BottomSheetBehavior.STATE_EXPANDED | ||||
|             ) { | ||||
|                 bottomSheetDetailsBehavior!!.state = BottomSheetBehavior.STATE_COLLAPSED | ||||
|                 bottomSheetDetailsBehavior!!.setState(BottomSheetBehavior.STATE_COLLAPSED) | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|  | @ -2457,9 +2457,11 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(), | |||
|                 Timber.d("Gallery button tapped. Place: %s", selectedPlace.toString()) | ||||
|                 storeSharedPrefs(selectedPlace!!) | ||||
|                 activity?.let { | ||||
|                     // Pass singleSelection = true for Nearby flow | ||||
|                     controller!!.initiateCustomGalleryPickWithPermission( | ||||
|                         it, | ||||
|                         customSelectorLauncherForResult | ||||
|                         customSelectorLauncherForResult, | ||||
|                         singleSelection = true | ||||
|                     ) | ||||
|                 } | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sonal Yadav
						Sonal Yadav