Skip to content

Commit

Permalink
Refactor isAlwaysGranted
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Sep 3, 2024
1 parent c3040ce commit 25a4e88
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,10 @@ internal fun Permission.isAlwaysGranted(): Boolean =
this == Permission.WriteStorage &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R ->
true
// Permission.Gallery,
// Permission.ReadStorage,
// Permission.WriteStorage,
// Permission.RemoteNotification,
// -> true

this == Permission.RemoteNotification ->
true

else -> false
}

Expand Down

0 comments on commit 25a4e88

Please sign in to comment.