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

log and try loading file anyways if ACTION_VIEW MIME type is null, for app compatibility #411

Conversation

soupslurpr
Copy link
Member

@soupslurpr soupslurpr commented Nov 16, 2024

Some apps somehow end up giving us a pdf with a null MIME type. This makes us compatible with them instead of showing an invalid MIME type error. The error is still shown for MIME types that are both not "application/pdf" and not null.

This will probably resolve #387, but I haven't tried with the specific app reported in it. I had this issue with another app.

name added 2 commits November 16, 2024 00:30
Some apps somehow end up giving us a pdf with a null MIME type. This makes us compatible with them instead of showing an invalid MIME type error. The error is still shown for MIME types that are not "application/pdf" and not null.
@soupslurpr soupslurpr force-pushed the compatibility-with-apps-that-report-null-mime-type branch from 85f9ba3 to de576fb Compare November 16, 2024 12:04
@soupslurpr soupslurpr changed the title try loading file anyways if MIME type is null, for app compatibility log and try loading file anyways if ACTION_VIEW MIME type is null, for app compatibility Nov 16, 2024
@thestinger thestinger merged commit 40d25bf into GrapheneOS:main Nov 26, 2024
2 checks passed
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.

Cannot open file with invalid MIME type
2 participants