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 #1455 NPE when compressing images from gallery on Android 14 #1458

Merged
merged 3 commits into from Mar 20, 2024

Conversation

mauriziopinotti
Copy link

@mauriziopinotti mauriziopinotti commented Mar 11, 2024

Compression is done by reading the file on disk, which is not allowed on Android 14+.
The correct way is opening the content Uri with openInputStream().

Maurizio Pinotti added 2 commits March 11, 2024 11:02
…roid 14

Compress used to happen by reading the file on disk, which is not
allowed on Android 14+. The correct way is opening the content Uri with
openInputStream().
Copy link
Collaborator

@navaronbracke navaronbracke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One remark about the input stream

Copy link
Collaborator

@navaronbracke navaronbracke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave it to @miguelpruivo to include this into a release, since I am not in the publisher group on Pub.

@miguelpruivo miguelpruivo merged commit 658d6c9 into miguelpruivo:master Mar 20, 2024
0 of 3 checks passed
@miguelpruivo
Copy link
Owner

Merged. Thank you all.

@m-gug m-gug mentioned this pull request Mar 20, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants