Skip to content
Snippets Groups Projects
Commit fa0acea0 authored by Duncan McNamara's avatar Duncan McNamara
Browse files

Permissions: fix media showing without permission

In the case of the VideoGridFragment, canReadVideos will always return
true below API 33, showing media if there were media indexed before
revoking file permissions.

On android 11 an 12 (API 30/31/32) when media permission only,
isExternalStorageManager will return false, but checking for
READ_EXTERNAL_STORAGE will return true.

On Android API 33+, if given only audio or video permission,
READ_EXTERNAL_STORAGE will also return true meaning that the check must
be restrained to API 30/31/32,

Furthermore, for API 30/31/32, isExternalStorageManager also needs to be
checked for when the app has full access.

Fixes #3129
parent b92c5f06
No related branches found
No related tags found
No related merge requests found
Pipeline #560872 passed with stage
in 11 minutes and 9 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment