if you have a random reminder, it shouldn't go nonstop mode

pull/14/head
Tim Su 14 years ago
parent 663729fe5b
commit 0a2ed597d1

@ -183,6 +183,10 @@ public class Notifications extends BroadcastReceiver {
if(notificationManager == null) if(notificationManager == null)
notificationManager = new AndroidNotificationManager(context); notificationManager = new AndroidNotificationManager(context);
// don't ring multiple times if random reminder
if(type == ReminderService.TYPE_RANDOM)
ringTimes = 1;
// quiet hours? unless alarm clock // quiet hours? unless alarm clock
boolean quietHours = (type == ReminderService.TYPE_ALARM || type == ReminderService.TYPE_DUE) ? false : isQuietHours(); boolean quietHours = (type == ReminderService.TYPE_ALARM || type == ReminderService.TYPE_DUE) ? false : isQuietHours();

Loading…
Cancel
Save