sangcomz / FishBun

:blowfish:FishBun is Image Picker for android.
Apache License 2.0
671 stars 143 forks source link

Update PermissionCheck.kt #265

Open panshuljindal opened 1 year ago

panshuljindal commented 1 year ago

Added handling for the removing the WRITE_EXTERNAL_STORAGE permission in case of API 30 to 32

Fixes issue #.
This PR changes:

How to recreate Create an app with targetApiVersion 33. Use a device with API version between 30-32. Create a picker activity instance and it will return "Permission Denied" toast everytime but all the permissions required are given.

Changes Done: Added another statement to check for only READ_EXTERNAL_STORAGE in case of api version between 30 to 32.