Search in sources :

Example 6 with Subject

use of com.tevinjeffrey.rutgersct.rutgersapi.model.Subject in project Rutgers-Course-Tracker by tevjef.

the class CourseInfoFragment method setShortenedCourseInfo.

private void setShortenedCourseInfo() {
    //String offeringUnitCode = mSelectedCourse.getOfferingUnitCode();
    Subject subject = mSelectedCourse.getEnclosingSubject();
    String courseNumber = mSelectedCourse.getCourseNumber();
    if (subject != null) {
        String shortenedCourseInfo = subject.getTitle() + " › " + courseNumber;
        mShortenedCourseInfo.setText(shortenedCourseInfo);
    } else {
        Timber.i("http://crashes.to/s/0397fd79332 Selected course: %s\n" + " Course number: %s\n" + " Request: %s", mSelectedCourse, courseNumber, mSelectedCourse.getRequest());
    }
}
Also used : Subject(com.tevinjeffrey.rutgersct.rutgersapi.model.Subject)

Aggregations

Subject (com.tevinjeffrey.rutgersct.rutgersapi.model.Subject)6 RecyclerView (android.support.v7.widget.RecyclerView)1 View (android.view.View)1 RutgersDataIOException (com.tevinjeffrey.rutgersct.rutgersapi.exceptions.RutgersDataIOException)1 Request (com.tevinjeffrey.rutgersct.rutgersapi.model.Request)1 List (java.util.List)1 Test (org.junit.Test)1 Subscriber (rx.Subscriber)1 Action0 (rx.functions.Action0)1