diff --git a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java index ce9adf6d3..0a55040ce 100644 --- a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java +++ b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java @@ -81,6 +81,11 @@ public class Notifications extends BroadcastReceiver { else reminder = ""; //$NON-NLS-1$ + synchronized(Notifications.class) { + if(notificationManager == null) + notificationManager = new AndroidNotificationManager(context); + } + if(!showTaskNotification(id, type, reminder)) { notificationManager.cancel((int)id); }