I've recently upgraded the library to the newest version and I've noticed that starting the CropImageContract with opening the camera does two weird things:
1) It opens a camera in camera (see screenshot).
2) There is no way to exit the view. Pressing back brings back to the camera, and taking a picture, and saving it also brings the user back to the camera view.
Any idea what I might be setting wrong. These are the options:
CropImageOptions(
guidelines = CropImageView.Guidelines.ON,
outputCompressFormat = Bitmap.CompressFormat.PNG,
aspectRatioX = aspectRatio,
aspectRatioY = aspectRatio,
fixAspectRatio = true,
outputRequestHeight = imageSize,
outputRequestWidth = imageSize,
cropMenuCropButtonTitle = "Save",
activityBackgroundColor = ContextCompat.getColor(requireContext(), R.color.black),
activityMenuTextColor = ContextCompat.getColor(requireContext(), R.color.white),
imageSourceIncludeCamera = true,
imageSourceIncludeGallery = false)
I've recently upgraded the library to the newest version and I've noticed that starting the
CropImageContract
with opening the camera does two weird things: 1) It opens a camera in camera (see screenshot). 2) There is no way to exit the view. Pressing back brings back to the camera, and taking a picture, and saving it also brings the user back to the camera view.Any idea what I might be setting wrong. These are the options: CropImageOptions( guidelines = CropImageView.Guidelines.ON, outputCompressFormat = Bitmap.CompressFormat.PNG, aspectRatioX = aspectRatio, aspectRatioY = aspectRatio, fixAspectRatio = true, outputRequestHeight = imageSize, outputRequestWidth = imageSize, cropMenuCropButtonTitle = "Save", activityBackgroundColor = ContextCompat.getColor(requireContext(), R.color.black), activityMenuTextColor = ContextCompat.getColor(requireContext(), R.color.white), imageSourceIncludeCamera = true, imageSourceIncludeGallery = false)