ArthurHub / ArthurHub/Android-Image-Cropper
Strange bug on backPress, ImageView resizes by itself
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
If you start from activity with
// start picker to get image for cropping and then use the image in cropping activity
CropImage.activity()
.setGuidelines(CropImageView.Guidelines.ON)
.start(this);
and while options are open press back, the imagview showing the image shrinks to the top left corner and becomes the smallest thumbnail, let's say 50dp by 50dp. Only when activity is refreshed does the imageView return to it's normal and xml defined size of say 250dp width and height. I have never seen a bug like this. What could be causing this?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue using the CropImage.activity() flow, enable guidelines, open the options, and press back. Then inspect the cropper activity and back-navigation behavior to determine why the ImageView becomes a 50dp thumbnail; done means the ImageView keeps its XML-defined size without requiring an activity refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100