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