Record how many people are using voice reminders

pull/14/head
Sam Bosley 11 years ago
parent 49ad7727ff
commit 4cdfa972a9

@ -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<Metadata> sort = metadataService.query(Query.select(Metadata.ID).where(criterion).limit(1));
try {

@ -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";
}

Loading…
Cancel
Save