You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've switched the permission request logic to use READ_MEDIA_IMAGES
for Android 11 (API 30) and newer. This aligns with modern
Android permission practices and aims to resolve media access
issues on Android 12 by using a more standard permission
than MANAGE_EXTERNAL_STORAGE for typical media access.
Specifically:
- I modified `requiredPermissions` in MainActivity to request
READ_MEDIA_IMAGES and READ_MEDIA_VIDEO for API 30+.
- For API 29 and older, it continues to request
READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE.
- I reverted previous attempts to use MANAGE_EXTERNAL_STORAGE
for Android 11/12, including removing the associated
ActivityResultLauncher and specific dialogs.
- The existing permission rationale dialog is now used for
all permission requests.
This change addresses your feedback to use minimal necessary
permissions and prepares for testing on Android 12 and 15.
0 commit comments