Closed omkar-tenkale closed 3 years ago
Hello @omkar-tenkale Welcome!
Could you please provide some more information?
Theme
your app use for layout.On Steps to reproduce I cannot use this steps to reproduce =/
findViewbyId
which id are you using? which view? is a library view?
setImageUri()
are you using this without parameter? we have 3 functions in this library that has this signature depending on how are you using. which one of them?
Thanks =D
Issue title with a clear name for the bug: DialogFragment usage of CropImageView leads to crash (Sorry didn't see that before :P) Library version: 3.0.0 Which OS are you testing it : Android 11 LineageOS The code you used to call the library:
CropImageView view = mDialog.getView().findViewById(R.id.cropImageView)
cropImageView.setImageUriAsync(Uri.fromFile(myImageFile));
The code you add in your manifest to use the library
Manifest? Nothing
What Theme your app use for layout.
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
I think the root cause of issue is using the view in DialogFragment
androidx.fragment.app.DialogFragment
Hey @omkar-tenkale thank for exemplify more!
Indeed this is a context issue. Not sure if the library can support the usage of DialogFragment.
My suggestion would be to add a DialogFragment sample in our code base, in the sample module. So I can reproduce and you or another person can make the tweeks to make it work
Let's keep this mess organised! This issue has been automatically marked as stale
because it has not had recent activity. =( It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug Crash on setting image source uri
To Reproduce Steps to reproduce the behavior: CropImageView view = mDialog.getView().findViewById(R.id.cropImageView) cropImageView.setImageUriAsync(Uri.fromFile(myImageFile));
Expected behavior Load the image in cropview
Actual Behaviour Application crash with following stack trace
Additional context