void (boolean allowed) { final ConsentOptionsProvider options = getConsentOptionsProvider(); if (options != null) { if (options.isEAP()) { isAllowedForEAP = allowed; } else { options.setSendingUsageStatsAllowed(allowed); } } }