use of ca.etsmtl.applets.etsmobile.ui.adapter.MyCourseDetailAdapter in project ETSMobile-Android2 by ApplETS.
the class NotesDetailsFragment method refresh.
private void refresh() {
mlisteDesElementsEvaluation = mNoteManager.getListElementsEvaluation(id);
if (mlisteDesElementsEvaluation != null) {
List<ElementEvaluation> elementsEvaluationList = mNoteManager.getElementsEvaluation(mlisteDesElementsEvaluation);
mlisteDesElementsEvaluation.liste.addAll(elementsEvaluationList);
Activity activity = getActivity();
if (activity != null) {
final MyCourseDetailAdapter myCourseDetailAdapter = new MyCourseDetailAdapter(getActivity(), mlisteDesElementsEvaluation, cote);
getActivity().runOnUiThread(new Runnable() {
public void run() {
mlistView.setAdapter(myCourseDetailAdapter);
}
});
}
}
}
Aggregations