Skip to content

Conversation

ArnyminerZ
Copy link
Member

Purpose

The "keep permissions" toggle was always shown, regardless of the current Android version. This should be hidden in Android 9 and below.

Short description

Made the needKeepPermissions variable nullable on PermissionsModel. It will only be initialized in Android 30 and above. This is when isAutoRevokeWhitelisted was introduced.

Also fixed an small deprecation on PermissionsScreen.

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

@ArnyminerZ ArnyminerZ added the bug Something isn't working label Apr 22, 2025
@ArnyminerZ ArnyminerZ self-assigned this Apr 22, 2025
@ArnyminerZ ArnyminerZ linked an issue Apr 22, 2025 that may be closed by this pull request
2 tasks
@rfc2822 rfc2822 marked this pull request as ready for review April 22, 2025 07:34
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, works!

@rfc2822 rfc2822 merged commit 04fe8e1 into main-ose Apr 22, 2025
8 checks passed
@rfc2822 rfc2822 deleted the 1395-android-10-keep-permissions-entry-shown-in-permissions-dialog branch April 22, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android 9] "Keep permissions" entry shown in Permissions dialog
2 participants