Open
Description
Description
When requesting permission with PermissionState.launchPermissionRequest()
in light mode on Android 14 or above when the user has rejected the permission before, the status bar will turn white and black (blink) for a moment.
Steps to reproduce
- Calls
PermissionState.launchPermissionRequest()
for the first time, then rejects it - Calls the function again, in light mode
Expected behavior
- I expect the blinking to not occur, i.e. don't trigger the dialog to begin with when the user already rejected it before.
IflaunchPermissionRequest()
is not supposed to be used this way, I expect that there is a mean / function that checks whether the permission is rejected before so that this issue can be avoided directly, as currently there is onlyPermissionState.status.isGranted
, but none that checks whether it was rejected before
Additional context
I suspect that it occurs due to the app attempting to show the permission request dialog, but user has already rejected it before, which instantly dismisses the popup, causing the blink.
Metadata
Metadata
Assignees
Labels
No labels