hanks-zyh / hanks-zyh/SelectPicture
to
- Dominant language
- Java
- Stars
- 129
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK && requestCode == UCrop.REQUEST_CROP) {
final Uri resultUri = UCrop.getOutput(data);
data.putExtra(EXTRA_PATH, resultUri.getPath());
setResult(RESULT_OK, data);
} else if (resultCode == UCrop.RESULT_ERROR) {
final Throwable cropError = UCrop.getError(data);
Toast.makeText(GridImageActivity.this, cropError.getMessage(), Toast.LENGTH_SHORT).show();
}
}
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue body only shows onActivityResult code in GridImageActivity and does not identify a requested change or failing behavior. Start by reading that callback and determine the intended result handling before defining what a fix and its tests would look like.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 10/100