-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Replace open_file
package with open_file_plus
.
#636
Conversation
Fixes Android permission errors that come up on >= Android 13: `Permission denied: android.Manifest.permission.MANAGE_EXTERNAL_STORAGE`.
To view this pull requests documentation preview, visit the following URL: docs.page/sharezoneapp/sharezone-app~636 Documentation is deployed and generated using docs.page. |
Visit the preview URL for this PR (updated for commit 8333b03): https://sharezone-test--pr636-replace-open-file-wi-tcze195v.web.app (expires Wed, 10 May 2023 16:46:44 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b |
Right now when trying to open files on Android with an extension in uppercase (e.g. If sharezone-app/app/lib/filesharing/widgets/download_unknown_file_type_dialog_content.dart Lines 88 to 94 in 007a722
|
Hm idk why the file diffs look so weird, did the line endings change because I'm on Windows maybe? But I made several PRs from Windows and this hasn't happend before 🤔 |
Hm, fixed it now by running |
Idk if I'll get to it atm, could I pass this task to you @nilsreichardt ? (In another PR though) |
Yes, I'm opened #637 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I have successfully tested it with Android 13 and macOS. On Android 5 (I used an emulator) it opened the app to view the file on the phone. However, this app couldn't the image. Not sure if this an issue caused by the package or just an issue with the Android emulator. I would just merge it for now 👍
Fixes Android permission errors that come up on >= Android 11:
Permission denied: android.Manifest.permission.MANAGE_EXTERNAL_STORAGE
.Note: I only tested this works on Android 11, not earlier versions.