@Override public void onClick(DialogInterface dialog, int which) { if (which == Dialog.BUTTON_POSITIVE) { EasyPermissions.executePermissionsRequest(mHost, mConfig.permissions, mConfig.requestCode); } else { notifyPermissionDenied(); } }