-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
fix permissions for ~ android 11 #2732
Conversation
To test the changes in this pull request, install this apk: |
d4a03fe
to
a213fe8
Compare
To test the changes in this pull request, install this apk: |
seems as if sdk29 is fine already. so, this pr really fixes only android11 on-point, from the logic, the older androids should be unchanged |
@adbenitez for logic review, i think, that paths of other android-versions are not changed, seems calming |
…eys() is misleading)
a213fe8
to
18b0135
Compare
To test the changes in this pull request, install this apk: |
oh :( talk about android fragmentation |
so, finally, this is ready for review; i double checked the android versions mentioned above ... |
@@ -100,6 +102,20 @@ public PermissionsBuilder ifNecessary(boolean condition) { | |||
return this; | |||
} | |||
|
|||
public PermissionsBuilder alwaysGrantOnSdk30() { |
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 would just have a generic function alwaysGrantOnSdk(int version)
and then call Permissions.alwaysGrantOnSdk(30)
etc. but is fine as it is as well
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.
yeah, let's leave this as is for now. it looks more explicit that 33/30 is no typo in a parameter :)
To test the changes in this pull request, install this apk: |
src/org/thoughtcrime/securesms/preferences/ChatsPreferenceFragment.java
Outdated
Show resolved
Hide resolved
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.
great! thanks for fixing and enduring having to try in all that emulators! overall the code looks good, I can't test it myself other than in sdk 33
fixes #2726
other file access points are: