1.start to get the permission like camera.
2.cancle the permission dialog by gesture.(onrequestpermissionResult will not callback on this moment)
3.start to get the camera permission again.
4.bug happened.
Expected results
I tried to fix this, but I'm not sure if it will affect the others。
My modification plan like it↓:
private boolean isAbleToClearCount = false;
@PermissionConstants.PermissionStatus
private int determinePermissionStatus(final @PermissionConstants.PermissionGroup int permission) {
if (isAbleToClearCount) {
isAbleToClearCount = false;
pendingRequestCount = 0;
}
line 435:
if (permissionsToRequest.size() > 0) {
isAbleToClearCount = true;
final String[] requestPermissions = permissionsToRequest.toArray(new String[0]);
ActivityCompat.requestPermissions(
activity,
requestPermissions,
PermissionConstants.PERMISSION_CODE);
}
Please select affected platform(s)
Steps to reproduce
1.start to get the permission like camera. 2.cancle the permission dialog by gesture.(onrequestpermissionResult will not callback on this moment) 3.start to get the camera permission again. 4.bug happened.
Expected results
I tried to fix this, but I'm not sure if it will affect the others。
My modification plan like it↓:
Looking forward to your reply。