mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
DRY
This commit is contained in:
parent
61ed436c44
commit
c9e0aff839
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class GalleryOrCameraDialogHelper(
|
||||||
when (type) {
|
when (type) {
|
||||||
Type.Camera ->
|
Type.Camera ->
|
||||||
if (checkPermissions(PERMISSIONS_FOR_TAKING_PHOTO, activity, takePhotoPermissionActivityResultLauncher)) {
|
if (checkPermissions(PERMISSIONS_FOR_TAKING_PHOTO, activity, takePhotoPermissionActivityResultLauncher)) {
|
||||||
avatarCameraUri = MultiPicker.get(MultiPicker.CAMERA).startWithExpectingFile(activity, takePhotoActivityResultLauncher)
|
doOpenCamera()
|
||||||
}
|
}
|
||||||
Type.Gallery ->
|
Type.Gallery ->
|
||||||
MultiPicker.get(MultiPicker.IMAGE).single().startWith(pickImageActivityResultLauncher)
|
MultiPicker.get(MultiPicker.IMAGE).single().startWith(pickImageActivityResultLauncher)
|
||||||
|
|
Loading…
Reference in a new issue