diff --git a/astrid/src/com/todoroo/astrid/service/StartupService.java b/astrid/src/com/todoroo/astrid/service/StartupService.java index df55492f5..27180c5eb 100644 --- a/astrid/src/com/todoroo/astrid/service/StartupService.java +++ b/astrid/src/com/todoroo/astrid/service/StartupService.java @@ -258,6 +258,7 @@ public class StartupService { checkForSubtasksUse(); checkForSwipeListsUse(); + checkForVoiceRemindersUse(); } }).start(); @@ -374,6 +375,17 @@ public class StartupService { } } + private static final String PREF_VOICE_REMINDERS_CHECK = "voice_reminders_check"; //$NON-NLS-1$ + + private void checkForVoiceRemindersUse() { + if (!Preferences.getBoolean(PREF_VOICE_REMINDERS_CHECK, false)) { + if (Preferences.getBoolean(R.string.p_voiceRemindersEnabled, false)) { + StatisticsService.reportEvent(StatisticsConstants.VOICE_REMINDERS_ENABLED); + Preferences.setBoolean(PREF_VOICE_REMINDERS_CHECK, true); + } + } + } + private void checkMetadataStat(Criterion criterion, String statistic) { TodorooCursor sort = metadataService.query(Query.select(Metadata.ID).where(criterion).limit(1)); try { diff --git a/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java b/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java index 08a5ec599..6a7fd28cf 100644 --- a/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java +++ b/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java @@ -91,4 +91,6 @@ public class StatisticsConstants { public static final String PREF_SHOW_FEATURED_LISTS = "pref-show-featured-lists"; public static final String PREF_CHANGED_PREFIX = "pref-changed-"; + + public static final String VOICE_REMINDERS_ENABLED = "voice-reminders-enabled"; }