Closed centerzx closed 4 years ago
Try to add perms
size check in onPermissionsGranted
:
if (requestCode == PermissionUtil.LIVE_PERMISSION_CODE) {
if (perms.size() == 4) {
grantedStartLive();
}
}
Sorry I never responded here! I totally missed this. @bitvale has the correct solution though, onPermissionsGranted
will be called even if only some permissions are granted.
Basic Information
Device type: _xiao mi 4S___ OS version: _7.0___ EasyPermissions version: _2.0.1___
DES:
Request permission: manifest.permission.camera, manifest.permission.record'audio, manifest.permission.write'external'storage, manifest.permission.read'external'storage
Among them, 2 are allowed, 1 is denied, and the operation method is added to the onpermissionsgranted method, and then click the button to request permission. At this time, permissionsgranted and permissionsdenied will be called continuously.
What happened? What did you expect to happen?
Code and logs
...........THX