-
Notifications
You must be signed in to change notification settings - Fork 458
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
startCrop throw "UnKown URI" #121
Comments
Hi, What Uri that throws the Exception? |
Utils.updateGalleryInfo(getContext(), uri);
|
I believe this issue happens when you're trying to save the image to a "file:///" Uri. On API 25, I'm getting the following exception:
By checking ContentResolver's code, we see:
and
So, I'll be creating a PR with a suggested fix. |
@IsseiAoki actually, I don't think I can create a PR without breaking your workflow. If I see it correctly, you'd first create a 1.1.7 branch, push the fix there, along with the changelog/readme/gradle changes. Only after that you'd merge that branch to master. So, if you create a 1.1.7 branch, I can create a PR of mine (https://github.com/tinsukE/SimpleCropView/tree/1.1.7) towards it. |
@JanesenHeart Thank you for your response. @tinsukE |
Done! |
Thank you for your contribution! 🎉 |
@tinsukE @JanesenHeart |
private Uri saveImage(Bitmap bitmap, final Uri uri) throws IOException, IllegalStateException {
mSaveUri = uri;
if (mSaveUri == null) {
throw new IllegalStateException("Save uri must not be null.");
}
}
The text was updated successfully, but these errors were encountered: