public void onUpdateTaskComplete() {

    if (mCursor != null && !mCursor.isClosed()) mCursor.close();

    mCursor =
        DataLoader.getInstance(mActivity.getApplicationContext())
            .getCursorLessonsByDate(mDay, mActivity.getPupilName());
    notifyDataSetChanged();
  }
  public LessonsListAdapter(DiaryActivity activity, Date day) {

    mActivity = activity;
    mDay = day;

    mCursor =
        DataLoader.getInstance(mActivity.getApplicationContext())
            .getCursorLessonsByDate(mDay, mActivity.getPupilName());
  }