Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
srsingh04 committed Jun 2, 2024
1 parent b782346 commit d421dfd
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -694,11 +694,11 @@ fun PictureTransformer(
}

/**
* This function is used to update the profile picture with the captured image by the camera
* @param bitmap: the captured image bitmap
* @param setPicture: the callback to update the profile picture
* This function is used to update the profile picture with the captured image by the camera
*
* @param bitmap: the captured image bitmap
* @param setPicture: the callback to update the profile picture
*/

private fun handleCapturedImage(bitmap: Bitmap, setPicture: (Bitmap) -> Unit) {
// Process the captured image bitmap here
setPicture(bitmap)
Expand All @@ -708,7 +708,6 @@ private fun handleCapturedImage(bitmap: Bitmap, setPicture: (Bitmap) -> Unit) {
*
* @param cameraLauncher: the launcher to start the camera activity
*/

private fun dispatchTakePictureIntent(cameraLauncher: ActivityResultLauncher<Intent>) {
val takePictureIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
try {
Expand Down

0 comments on commit d421dfd

Please sign in to comment.