From 723a833845c247e3869412f3137d721975267d1b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 20 Oct 2020 17:19:37 +0200 Subject: [PATCH] Better formatting --- .../app/core/dialogs/GalleryOrCameraDialogHelper.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vector/src/main/java/im/vector/app/core/dialogs/GalleryOrCameraDialogHelper.kt b/vector/src/main/java/im/vector/app/core/dialogs/GalleryOrCameraDialogHelper.kt index 769ec45dac..1f357b4cfc 100644 --- a/vector/src/main/java/im/vector/app/core/dialogs/GalleryOrCameraDialogHelper.kt +++ b/vector/src/main/java/im/vector/app/core/dialogs/GalleryOrCameraDialogHelper.kt @@ -50,9 +50,7 @@ class GalleryOrCameraDialogHelper( avatarCameraUri?.let { uri -> MultiPicker.get(MultiPicker.CAMERA) .getTakenPhoto(fragment.requireContext(), uri) - ?.let { - listener.onImageReady(it) - } + ?.let { listener.onImageReady(it) } } } } @@ -62,9 +60,8 @@ class GalleryOrCameraDialogHelper( MultiPicker .get(MultiPicker.IMAGE) .getSelectedFiles(fragment.requireContext(), activityResult.data) - .firstOrNull()?.let { - listener.onImageReady(it) - } + .firstOrNull() + ?.let { listener.onImageReady(it) } } }