This commit is contained in:
Benoit Marty 2020-11-05 15:42:44 +01:00
parent 61ed436c44
commit c9e0aff839

View file

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