code: public boolean checkPermission(boolean showAppInfoDialogEnabled) {
  		boolean hasPermission;
  		if (permissionRationaleMessageResId != 0) {
  			hasPermission = checkPermission(permissionDelegate, getPermissionRationaleTitleResId(), permissionRationaleMessageResId, permission, permissionRequestCode);
  		} else {
  			hasPermission = checkPermission(permissionDelegate, permission, permissionRequestCode);
  		}
  		if (!hasPermission && showAppInfoDialogEnabled) {
  			previouslyShouldShowRequestPermissionRationale = permissionDelegate.shouldShowRequestPermissionRationale(permission);
  		} else {
  			previouslyShouldShowRequestPermissionRationale = null;
  		}
  		return hasPermission;
  	}
docs: Similar to {@link #checkPermission()}, but it allows the AppInfoDialog will be enabled or disabled for this call.
  
  @param showAppInfoDialogEnabled true if the AppInfoDialog is enabled, false to disabled it.