ArthurHub / ArthurHub/Android-Image-Cropper
Random number for requestCode
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
I have a crop in a fragment with this code:
CropImage.activity()
.setCropMenuCropButtonTitle(activity.getResources().getString(R.string.titleCut))
.setAllowFlipping(false)
.setFixAspectRatio(true).setAutoZoomEnabled(true)
.setOutputCompressFormat(Bitmap.CompressFormat.JPEG).setOutputCompressQuality(80)
.start(getContext(), this);
To the start, onActivityResult doesn't work in fragment, but i solved using on Activity and calling:
fragment.onActivityResult(requestCode, resultCode, data);
But when I crop, the request code is:
- 65739
- 131275
- 196811
... Is a random value, and i don't see nothing in the library, someone can help me?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the CropImage.activity() launch and the onActivityResult bridge in the fragment and activity, focusing on how requestCode is passed through. Confirm whether the observed request codes are intentional and document or correct the behavior so callers can reliably identify the crop result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100