void onActivityReady ( Activity activity ) { this . activity = activity ; PermissionStates permissionStates = null ; synchronized ( pendingPermissionsMutex ) { if ( activity != null ) { permissionStates = getPermissionStates ( pendingPermissions ) ; } } if ( permissionStates != null ) { handleDeniedPermissions ( permissionStates . getDeniedPermissions ( ) ) ; updatePermissionsAsDenied ( permissionStates . getImpossibleToGrantPermissions ( ) ) ; updatePermissionsAsGranted ( permissionStates . getGrantedPermissions ( ) ) ; } }
Method called whenever the inner activity has been created or restarted and is ready to be used .