Only let due date and alarms override quiet hours

pull/14/head
Sam Bosley 13 years ago
parent b0e15ce502
commit 2dae272384

@ -184,7 +184,7 @@ public class Notifications extends BroadcastReceiver {
notificationManager = new AndroidNotificationManager(context); notificationManager = new AndroidNotificationManager(context);
// quiet hours? unless alarm clock // quiet hours? unless alarm clock
boolean quietHours = ringTimes < 0 ? false : isQuietHours(); boolean quietHours = (type == ReminderService.TYPE_ALARM || type == ReminderService.TYPE_DUE) ? false : isQuietHours();
PendingIntent pendingIntent = PendingIntent.getActivity(context, PendingIntent pendingIntent = PendingIntent.getActivity(context,
notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT); notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT);

Loading…
Cancel
Save