diff --git a/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt b/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt index 33c5b926..ec2f57de 100644 --- a/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt +++ b/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt @@ -52,7 +52,7 @@ abstract class PermissionDelegate { PackageManager.GET_PERMISSIONS ) } - return packageInfo.requestedPermissions.contains(permission) + return packageInfo.requestedPermissions?.contains(permission) == true } /**