handle Video access permission on Android 13+
This commit is contained in:
parent
3e529c4e3a
commit
72d3903bd1
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
callback(granted)
|
callback(granted)
|
||||||
if (granted && isRPlus()) {
|
if (granted && isRPlus()) {
|
||||||
handlePermission(PERMISSION_MEDIA_LOCATION) {}
|
handlePermission(PERMISSION_MEDIA_LOCATION) {}
|
||||||
|
if (isTiramisuPlus()) {
|
||||||
|
handlePermission(PERMISSION_READ_MEDIA_VIDEO) {}
|
||||||
|
}
|
||||||
|
|
||||||
if (!mWasMediaManagementPromptShown) {
|
if (!mWasMediaManagementPromptShown) {
|
||||||
mWasMediaManagementPromptShown = true
|
mWasMediaManagementPromptShown = true
|
||||||
handleMediaManagementPrompt { }
|
handleMediaManagementPrompt { }
|
||||||
|
|
Loading…
Reference in a new issue