Search in sources :

Example 1 with MyCourseDetailAdapter

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);
                }
            });
        }
    }
}
Also used : MyCourseDetailAdapter(ca.etsmtl.applets.etsmobile.ui.adapter.MyCourseDetailAdapter) Activity(android.app.Activity) ElementEvaluation(ca.etsmtl.applets.etsmobile.model.ElementEvaluation)

Aggregations

Activity (android.app.Activity)1 ElementEvaluation (ca.etsmtl.applets.etsmobile.model.ElementEvaluation)1 MyCourseDetailAdapter (ca.etsmtl.applets.etsmobile.ui.adapter.MyCourseDetailAdapter)1