From e31cc413724d90dddf1f8e1b07ce9b0e15a8894a Mon Sep 17 00:00:00 2001 From: Tim Su Date: Mon, 16 Aug 2010 14:51:55 -0700 Subject: [PATCH] Fix for AST-260 - overdue alarms during quiet hours get no vibrate --- .../com/todoroo/astrid/reminders/Notifications.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java index 18ee80574..b0d82d878 100644 --- a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java +++ b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java @@ -246,8 +246,9 @@ public class Notifications extends BroadcastReceiver { } } - // quiet hours + periodic = no vibrate - if(quietHours && (type == ReminderService.TYPE_RANDOM)) { + // quiet hours && ! due date or snooze = no vibrate + if(quietHours && !(type == ReminderService.TYPE_DUE || + type == ReminderService.TYPE_SNOOZE)) { notification.vibrate = null; } else { if (Preferences.getBoolean(R.string.p_rmd_vibrate, true)