Skip to content

Conversation

@Remzoo
Copy link

@Remzoo Remzoo commented Oct 28, 2020

Removed toast about no permission to storage on first run and moved to onRequestPermissionsResult.
When user runs application for the first time it is obvious application don't have permissions to storage. This information makes users confusing. It is important to notice that ContextCompat.requestPermissions is running on another thread. Setting variable configFileError right after calling requestPermissions function may cause bad state. In this case error flag will be setting faster than dialog show up.

Additionally activity will be finished when user declined.

…oved to requestpermissionsresult. Also finish activity when user denied.
@Remzoo Remzoo changed the title Removed toast about no external permission storage on first run and m… Fixed "No External Storage Permission" on first run and bad state of application Oct 28, 2020
@Remzoo
Copy link
Author

Remzoo commented Oct 28, 2020

Here is short video illustrating problem. Sorry for Polish language, but as you can see I pressed Accept ("Zezwól") but the application showed "No external Storage Permission". This error occur rather on fast smartphones than slower.

https://drive.google.com/file/d/1hrBfYtrCx0pxjQY7Nk13mqxRaXCsbkUz/view

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.

1 participant