Implement single selection logic in custom image picker (#6341)
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:
Sonal Yadav 2025-06-07 19:39:47 +05:30 committed by GitHub
parent 06a613e855
commit f45f26e602
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 45 additions and 22 deletions

View file

@ -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
)
}
}