add "showAlert" into Presenter

This commit is contained in:
hlq07 2018-05-12 13:09:19 +08:00
parent b45495b007
commit ab115b72d4
2 changed files with 2 additions and 3 deletions

View File

@ -176,7 +176,7 @@ public class PaintCalendarStrategy {
String time = String.format("%s-%s-1/0:0", y, m); String time = String.format("%s-%s-1/0:0", y, m);
mPresenter.paintCalendar(CalendarUtil.constructCalendar(time)); mPresenter.paintCalendar(CalendarUtil.constructCalendar(time));
} else { } else {
showAlert("give a number"); mPresenter.showAlert(0, "give a number");
} }
} }
@ -184,6 +184,4 @@ public class PaintCalendarStrategy {
mPresenter.paintCalendar(Calendar.getInstance()); mPresenter.paintCalendar(Calendar.getInstance());
} }
private void showAlert(String text) {
}
} }

View File

@ -86,4 +86,5 @@ public abstract class Presenter {
listTodoItems(manager.queryTodoItemsDuring(from, to)); listTodoItems(manager.queryTodoItemsDuring(from, to));
} }
protected abstract void showAlert(int type, String text);
} }