mBuilder.setAutoCancel(true);
mBuilder.setLights(ContextCompat.getColor(this, R.color.colorPrimary), 1000, 500);
mNotificationManager.notify(task.getId(), mBuilder.build());
}
public void reloadAlarmsFromDB() {
<BUG>mNotificationManager.cancelAll();
</BUG>
ArrayList<TodoTask> tasksToRemind = DBQueryHandler.getTasksToRemind(dbHelper.getReadableDatabase(), Helper.getCurrentTimestamp(), null);
for (TodoTask currentTask : tasksToRemind) {
setAlarmForTask(currentTask);

mBuilder.setAutoCancel(true);
mBuilder.setLights(ContextCompat.getColor(this, R.color.colorPrimary), 1000, 500);
mNotificationManager.notify(task.getId(), mBuilder.build());
}
public void reloadAlarmsFromDB() {
mNotificationManager.cancelAll(); // cancel all alarms
ArrayList<TodoTask> tasksToRemind = DBQueryHandler.getTasksToRemind(dbHelper.getReadableDatabase(), Helper.getCurrentTimestamp(), null);
for (TodoTask currentTask : tasksToRemind) {
setAlarmForTask(currentTask);
