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
Android: Improve WRITE_EXTERNAL_STORAGE denial #9061
Conversation
|
We should never ask the user to restart the app. Android doesn't make it clear how to restart an app, or whether a certain set of actions constitutes restarting an app or not (is going back to the home screen and launching the app again a restart, for instance?) You should be able solve the problem of needing to call
You should be able to remove the duplicate code by calling |
If the permission is granted within
I suppose users will figure out that the only way to get the permission prompt again is to force close and restart the app. I tried adding
Done |
|
It sounds like #9062 should solve some of these problems but I can't test it right now. I'll look into this again later. |
|
I think a long time goal should be dropping WRITE_EXTERNAL_STORAGE permission altogether. AFAICT, Dolphin only requests this permission to be able to write to |
|
@Ebola16 PR #9062 doesn't fix anything in itself, but it does make it very easy to gate Open File behind a permission check + toast (just like I did in PR #8962 with Import WAD). However, I will try to look into making Open File work properly when permissions are granted in the file picker. I'll handle it in a separate PR. (The actual place where it crashes was a little hard to track down, but it turned out to the the call to @mbc07 Dolphin currently also needs |
|
Now just a cleanup PR. The original intention of this PR has been split into the mentioned PRs. Ready for review. |
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.
I have no particular opinion about the changes left in this PR, but none of the changes are anything that I would oppose merging.
Now just a cleanup PR. The original intention of this PR has been split into the mentioned PRs.