add "showAlert" into Presenter
This commit is contained in:
parent
b45495b007
commit
ab115b72d4
|
@ -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) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue