diff --git a/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java b/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java index bc701ca..e5a7f6d 100644 --- a/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java @@ -236,7 +236,10 @@ todos.put(day, new ArrayList<>()); } for (int todoId : integerHashMapHashMap.get(day).keySet()) { - todos.get(day).add(integerHashMapHashMap.get(day).get(todoId)); + Todo todo = integerHashMapHashMap.get(day).get(todoId); + if(!todo.containsTodo(todos.get(day))){ + todos.get(day).add(todo); + } } } }