diff --git a/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java b/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java index 63d82a974..5ace0b397 100644 --- a/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java +++ b/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java @@ -77,6 +77,7 @@ public class StatisticsConstants { public static final String SHARE_BUTTON_CLICKED = "share-button-clicked"; public static final String PREMIUM_PAGE_VIEWED = "premium-page-viewed"; public static final String FEATURED_LIST_CLONED = "featured-list-cloned"; + public static final String RANDOM_REMINDER_SAVED = "random-rmdr-save"; public static final String ACTFM_LOGIN_SIMPLE = "actfm-login-simple"; public static final String ACTFM_LOGIN_SIMPLE_REJECTED = "actfm-login-simple-rejected"; diff --git a/astrid/src/com/todoroo/astrid/ui/RandomReminderControlSet.java b/astrid/src/com/todoroo/astrid/ui/RandomReminderControlSet.java index b976c73d0..1ca66f467 100644 --- a/astrid/src/com/todoroo/astrid/ui/RandomReminderControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/RandomReminderControlSet.java @@ -17,6 +17,8 @@ import com.timsu.astrid.R; import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.helper.TaskEditControlSet; +import com.todoroo.astrid.service.StatisticsConstants; +import com.todoroo.astrid.service.StatisticsService; /** * Control set dealing with random reminder settings @@ -94,6 +96,8 @@ public class RandomReminderControlSet extends TaskEditControlSet { if(settingCheckbox.isChecked()) { int hourValue = hours[periodSpinner.getSelectedItemPosition()]; task.setValue(Task.REMINDER_PERIOD, hourValue * DateUtilities.ONE_HOUR); + if (task.getSetValues().containsKey(Task.REMINDER_PERIOD.name)) + StatisticsService.reportEvent(StatisticsConstants.RANDOM_REMINDER_SAVED); } else task.setValue(Task.REMINDER_PERIOD, 0L); return null;