Skip to content

Commit

Permalink
Merge pull request #1783 from FelixZY/fzy/1781/1
Browse files Browse the repository at this point in the history
[Permissions] fix(gh-1781): check for `Denied(shouldShowRationale=false)` in `MutableMultiplePermissionsState.shouldShowRationale`
  • Loading branch information
bentrengrove authored Nov 25, 2024
2 parents 52a660d + b80c533 commit b019980
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ internal class MutableMultiplePermissionsState(
}

override val shouldShowRationale: Boolean by derivedStateOf {
permissions.any { it.status.shouldShowRationale }
permissions.any { it.status.shouldShowRationale } &&
permissions.none { !it.status.isGranted && !it.status.shouldShowRationale }
}

override fun launchMultiplePermissionRequest() {
Expand Down

0 comments on commit b019980

Please sign in to comment.