use of com.mnnyang.gzuclassschedule.utils.DialogListener in project GzuClassSchedule by mnnyang.
the class CourseActivity method onLongClick.
@Override
public void onLongClick(final Course course, LinearLayout itemLayout) {
DialogHelper dialogHelper = new DialogHelper();
dialogHelper.showNormalDialog(this, getString(R.string.confirm_to_delete), "课程 【" + course.getName() + "】" + Constant.WEEK[course.getWeek()] + "第" + course.getNodes().get(0) + "节 " + "", new DialogListener() {
@Override
public void onPositive(DialogInterface dialog, int which) {
super.onPositive(dialog, which);
// delete
mPresenter.deleteCourse(course.getCourseId());
}
});
}
Aggregations