Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojianglaile committed Jul 4, 2017
1 parent a2d8313 commit d143686
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -98,7 +99,14 @@ public boolean removeTaskHint(int year, int month, int day) {
sUtils.sMonthTaskHint.put(key, hints);
} else {
if (hints.contains(day)) {
hints.remove(day);
Iterator<Integer> i = hints.iterator();
while (i.hasNext()) {
Integer next = i.next();
if (next == day) {
i.remove();
break;
}
}
return true;
} else {
return false;
Expand Down

0 comments on commit d143686

Please sign in to comment.