fix some bugs

This commit is contained in:
hlq07 2018-05-12 14:37:45 +08:00
parent e2ccf7a7aa
commit c88037c1a3
2 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,7 @@ public abstract class Presenter {
CalendarUnit unit = CalendarUnit.constructUnit(flags, festivalName);
days.add(unit);
c1.add(Calendar.DAY_OF_MONTH, 1);
}
paintCalendar(date, days);

View File

@ -74,15 +74,19 @@ public class ShowTodoItemDetailStrategy {
switch (item.getType()) {
case TodoItem.CONFERENCE: {
builder.append("conference");
break;
}
case TodoItem.DATE: {
builder.append("date");
break;
}
case TodoItem.OTHERS: {
builder.append("others");
break;
}
default: {
builder.append("unknown");
break;
}
}
@ -110,6 +114,7 @@ public class ShowTodoItemDetailStrategy {
}
mText.setText(builder.toString());
mStage.show();
}