index 3e84862..f683796 100644 --- a/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/ImagePickerModule.kt +++ b/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/ImagePickerModule.kt @@ -140,17 +140,7 @@ class ImagePickerModule( return } - val permissionsResponseHandler = PermissionsResponseListener { permissionsResponse: Map -> - if (permissionsResponse[Manifest.permission.WRITE_EXTERNAL_STORAGE]?.status == PermissionsStatus.GRANTED && - permissionsResponse[Manifest.permission.CAMERA]?.status == PermissionsStatus.GRANTED - ) { - launchCameraWithPermissionsGranted(promise, cameraIntent, pickerOptions) - } else { - promise.reject(SecurityException("User rejected permissions")) - } - } - - mPermissions.askForPermissions(permissionsResponseHandler, Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CAMERA) + return launchCameraWithPermissionsGranted(promise, cameraIntent, pickerOptions) } // NOTE: Currently not reentrant / doesn't support concurrent requests