Skip to content

Commit

Permalink
Adjust reengagement reminder intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosley committed Jun 15, 2012
1 parent 81e6146 commit 283603c
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -15,7 +15,6 @@ public final class ReengagementService {

private static final int REQUEST_CODE = 10;

private static final int DAYS_INTERVAL = 2;

public static final String PREF_REENGAGEMENT_COUNT = "pref_reengagement_count"; //$NON-NLS-1$

Expand All @@ -35,9 +34,9 @@ private static long getNextReminderTime() {
int reengagementReminders = Preferences.getInt(PREF_REENGAGEMENT_COUNT, 1);
int days;
if (reengagementReminders >= 4)
days = DAYS_INTERVAL * 4;
days = 5;
else
days = DAYS_INTERVAL * reengagementReminders;
days = 1 + reengagementReminders;

Date date = new Date(DateUtilities.now() + DateUtilities.ONE_DAY * days / 1000L * 1000L);
date.setHours(18);
Expand Down

0 comments on commit 283603c

Please sign in to comment.