Skip to content

Commit

Permalink
Merge pull request #195 from MohamedRejeb/0.6.x
Browse files Browse the repository at this point in the history
Fix: Storage permission is not granted but returns granted
  • Loading branch information
MohamedRejeb authored Nov 9, 2024
2 parents 55476f6 + 7bcc83c commit e476f68
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,6 @@ internal fun Permission.toAndroidPermission(): String {

internal fun Permission.isAlwaysGranted(): Boolean =
when {
this == Permission.Gallery &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ->
true

this == Permission.ReadStorage &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ->
true

this == Permission.WriteStorage &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R ->
true

this == Permission.RemoteNotification ->
true

Expand Down

0 comments on commit e476f68

Please sign in to comment.