You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue on my Samsung Galaxy S6 edge where i'm requesting permissions and even before the user has tapped on the allow or deny button the onPermissionResult is called. @Override public void onPermissionsResult(String[] grantedPermissions, String[] refusedPermissions) throws SecurityException { if (refusedPermissions.length > 0 || grantedPermissions.length < 5) { requestPermissions(); } else { checkInternetConnection(); } }
I've set a breakpoint at requestPermissions and checkInternetConnection and it seems that when the dialog of the permission request is active, the onPermissionResult keeps getting called like it's in some sort of loop.
The text was updated successfully, but these errors were encountered:
TripwireNL
changed the title
onPermissionResult called multiple times on Android 6.0.1
onPermissionResult called multiple times on Android 6.0.1 even before responding to dialog
Jul 17, 2017
Hi,
I'm having an issue on my Samsung Galaxy S6 edge where i'm requesting permissions and even before the user has tapped on the allow or deny button the onPermissionResult is called.
@Override public void onPermissionsResult(String[] grantedPermissions, String[] refusedPermissions) throws SecurityException { if (refusedPermissions.length > 0 || grantedPermissions.length < 5) { requestPermissions(); } else { checkInternetConnection(); } }
I've set a breakpoint at requestPermissions and checkInternetConnection and it seems that when the dialog of the permission request is active, the onPermissionResult keeps getting called like it's in some sort of loop.
My code for requesting permissions:
The text was updated successfully, but these errors were encountered: