Skip to content
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

fix(camera): Make allowEdit work on all devices #552

Merged
merged 2 commits into from
Aug 17, 2021
Merged

Conversation

jcesarmobile
Copy link
Member

Hopefully on all devices, but maybe not all, I tested on android 5, 7, 9 and 11 without problems

With the move from request codes to activity launcher the code no longer catch the security exception, so now will always create a copy of the file and edit the copy instead of trying to edit the returned content urls, which could cause security exceptions in some devices.

Also calls grantUriPermission for the url passed to the edit intent, shouldn't be necessary, but on Android 11 it doesn't work without it.

closes #306
closes #307

@jcesarmobile jcesarmobile merged commit 5224177 into main Aug 17, 2021
@jcesarmobile jcesarmobile deleted the allow-edit branch August 17, 2021 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants