private static void accept(Activity activity) { if (activity instanceof EulaCallback) { ((EulaCallback) activity).eulaAccepted(); } Preferences.setBoolean(PREFERENCE_EULA_ACCEPTED, true); StatisticsService.reportEvent(StatisticsConstants.EULA_ACCEPTED); }
private static void refuse(Activity activity) { if (activity instanceof EulaCallback) { ((EulaCallback) activity).eulaRefused(); } activity.finish(); }