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

Target Android 10, update permission handling #948

Merged
merged 11 commits into from
Jul 30, 2020

Conversation

gerhardol
Copy link
Collaborator

Changes required to target Android 10 and prepare for Android 11 (R).
These changes will be mandatory either in a week or in October, depending on how you read the Google material.

See individual commits for details

@Miniangel
Copy link
Contributor

Miniangel commented Jul 29, 2020 via email

For FileSynchronizer, save exports to a subdirectory of Documents,
similar to the previous defaults.

For db import/export use hardcoded getExternalFilesDir() and let the user copy files
A file picker could be used eventually.
If permissions are denied, give motivation and let the user try again
(unless "don't ask again" is ticked)

Remove snackbar as it will not rerequest permissions if the user ticks
"don't ask again".
Instead use a popup that asks the user to go to system settings,
without starting the workout. (Linking to system settings is not
recommended in the guidelines.)

TODO onRequestPermissionsResult() is not called, why permissions are
checked onCreate (similar to how requested for autostart GPS)
instead of when selecting Enable GPS.
@gerhardol gerhardol force-pushed the feature/prepare-android-10 branch from 5fa6bdc to 2d56681 Compare July 30, 2020 09:37
@gerhardol gerhardol force-pushed the feature/prepare-android-10 branch from 2d56681 to ccf6de6 Compare July 30, 2020 10:13
@gerhardol gerhardol merged commit 7fd3a9d into jonasoreland:master Jul 30, 2020
@gerhardol gerhardol deleted the feature/prepare-android-10 branch July 30, 2020 10:14
@gerhardol gerhardol mentioned this pull request Jul 31, 2020
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.

2 participants