Skip to content

Commit

Permalink
🐛 Fix mediaLocation = true does not work on Android API 34 (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
chocoyang-horizon authored Oct 15, 2024
1 parent 4396e54 commit bd48e50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PermissionDelegate34 : PermissionDelegate() {
requestType: Int,
mediaLocation: Boolean
) {
if (havePermissions(context, requestType)) {
if (havePermissions(context, requestType) && (!mediaLocation || haveMediaLocation(context))) {
permissionsUtils.permissionsListener?.onGranted(mutableListOf())
return
}
Expand Down

0 comments on commit bd48e50

Please sign in to comment.