-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#96 Fix picking camera image without cropping #97
base: master
Are you sure you want to change the base?
Conversation
@Drjacky Can you please let know when this changes will be merged in the source. Changes looks correct for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A Q
@@ -140,7 +140,7 @@ class MainActivity : AppCompatActivity() { | |||
fun pickCameraImage(view: View) { | |||
cameraLauncher.launch( | |||
ImagePicker.with(this) | |||
.crop() | |||
//.crop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why's that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I see that's because of #96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but what if someone wants to crop the camera image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no problem. It's optional. Both with or without crop are handled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, the issue is not with the crop itself as the titles say: #96 Fix picking camera image without cropping
& [Crash] When picking a camera image without setting crop()
The improvement is here, right?
mImageUri?.path?.let { path ->
File(path).delete()
}
it.delete() //Why uncommented BTW?
mImageUri?.path?.let { path -> | ||
File(path).delete() | ||
} | ||
it.delete() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was commented
Applied changes below: