Better formatting
This commit is contained in:
parent
f567f92d8f
commit
723a833845
|
@ -50,9 +50,7 @@ class GalleryOrCameraDialogHelper(
|
||||||
avatarCameraUri?.let { uri ->
|
avatarCameraUri?.let { uri ->
|
||||||
MultiPicker.get(MultiPicker.CAMERA)
|
MultiPicker.get(MultiPicker.CAMERA)
|
||||||
.getTakenPhoto(fragment.requireContext(), uri)
|
.getTakenPhoto(fragment.requireContext(), uri)
|
||||||
?.let {
|
?.let { listener.onImageReady(it) }
|
||||||
listener.onImageReady(it)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,9 +60,8 @@ class GalleryOrCameraDialogHelper(
|
||||||
MultiPicker
|
MultiPicker
|
||||||
.get(MultiPicker.IMAGE)
|
.get(MultiPicker.IMAGE)
|
||||||
.getSelectedFiles(fragment.requireContext(), activityResult.data)
|
.getSelectedFiles(fragment.requireContext(), activityResult.data)
|
||||||
.firstOrNull()?.let {
|
.firstOrNull()
|
||||||
listener.onImageReady(it)
|
?.let { listener.onImageReady(it) }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue