Skip to content

PermissionDialog: fix dialog spawn loop

Duncan McNamara requested to merge Skantes/vlc-android:perm-dialog into master

On a new install, the manageMediaPermsCheck onclicklistener will ask for video/audio permission for API 33+, but for 30+ goes to getStoragePermission which ends calling requestStorageAccess. When API 30+ this will spawn a new PermissionListDialog, creating a loop.

In the onClickListener, asking for READ_EXTERNAL_STORAGE straight away for API 30+ solves this.

Merge request reports

Loading