use of com.instructure.canvasapi2.models.Group in project instructure-android by instructure.
the class PeopleListPresenter method setCanvasContextList.
public void setCanvasContextList(ArrayList<CanvasContext> canvasContextList) {
mCanvasContextList.clear();
mGroupUserCallback.reset();
clearData();
for (CanvasContext canvasContext : canvasContextList) {
if (CanvasContext.Type.isGroup(canvasContext)) {
// make api call to get group members
getGroupUsers(canvasContext);
}
// add it to the list so we can search for sections and remember which contexts we have selected if the user re-opens the dialog
mCanvasContextList.add(canvasContext);
}
// we've made api calls to get the groups, now filter the rest
filterCanvasContexts();
}
Aggregations