android application/app/src/main/java/com/slensky/focussis/fragments/PortalAssignmentsTabFragment.java
public void onAssignmentCreated(String courseId, CourseAssignment assignment) {
        if (showCustomAssignments && shouldShowAssignment(assignment)) {
            Log.d(TAG, "Updating assignments tab for newly created assignment " + assignment.getName());
            for (PortalCourse course : portal.getCourses()) {
                if (course.getId().equals(courseId)) {
                    course.getAssignments().add(courseAssignmentToPortalAssignment(course, assignment));
                    Collections.sort(course.getAssignments());
                    adapter.setCourses(portal.getCourses());
                    adapter.notifyDataSetChanged();
                    break;
                }
            }
        }
    }
/* callbacks for when custom assignments are modified on the course page */
callbacks for when custom assignments are modified on the course page
callbacks for when custom assignments are modified on the course page
public void onAssignmentCreated(String courseId, CourseAssignment assignment) {
        if (showCustomAssignments && shouldShowAssignment(assignment)) {
            Log.d(TAG, "Updating assignments tab for newly created assignment " + assignment.getName());
            for (PortalCourse course : portal.getCourses()) {
                if (course.getId().equals(courseId)) {
                    course.getAssignments().add(courseAssignmentToPortalAssignment(course, assignment));
                    Collections.sort(course.getAssignments());
                    adapter.setCourses(portal.getCourses());
                    adapter.notifyDataSetChanged();
                    break;
                }
            }
        }
    }
public void onAssignmentCreated ( String courseId , CourseAssignment assignment ) { if ( showCustomAssignments && shouldShowAssignment ( assignment ) ) { Log . d ( TAG , "Updating assignments tab for newly created assignment " + assignment . getName ( ) ) ; for ( PortalCourse course : portal . getCourses ( ) ) { if ( course . getId ( ) . equals ( courseId ) ) { course . getAssignments ( ) . add ( courseAssignmentToPortalAssignment ( course , assignment ) ) ; Collections . sort ( course . getAssignments ( ) ) ; adapter . setCourses ( portal . getCourses ( ) ) ; adapter . notifyDataSetChanged ( ) ; break ; } } } }
callbacks for when custom assignments are modified on the course page
callbacks for when custom assignments are modified on the course page