mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-05 22:36:56 +01:00
DRY
This commit is contained in:
parent
61ed436c44
commit
c9e0aff839
@ -117,7 +117,7 @@ class GalleryOrCameraDialogHelper(
|
||||
when (type) {
|
||||
Type.Camera ->
|
||||
if (checkPermissions(PERMISSIONS_FOR_TAKING_PHOTO, activity, takePhotoPermissionActivityResultLauncher)) {
|
||||
avatarCameraUri = MultiPicker.get(MultiPicker.CAMERA).startWithExpectingFile(activity, takePhotoActivityResultLauncher)
|
||||
doOpenCamera()
|
||||
}
|
||||
Type.Gallery ->
|
||||
MultiPicker.get(MultiPicker.IMAGE).single().startWith(pickImageActivityResultLauncher)
|
||||
|
Loading…
Reference in New Issue
Block a user