@TargetApi(Build.VERSION_CODES.HONEYCOMB)
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View vg = inflater.inflate(R.layout.course_schedule_fragment_layout, container, false);

    slidingDrawer = (WrappingSlidingDrawer) vg.findViewById(R.id.drawer);

    classInfoImageView = (ImageView) vg.findViewById(R.id.class_info_color);
    classInfoTextView = (TextView) vg.findViewById(R.id.class_info_text);
    errorLayout = (LinearLayout) vg.findViewById(R.id.schedule_error);
    errorTextView = (TextView) vg.findViewById(R.id.tv_failure);

    progress = (LinearLayout) vg.findViewById(R.id.schedule_progressbar_ll);
    noCoursesTextView = (TextView) vg.findViewById(R.id.no_courses);
    scheduleGridView = (GridView) vg.findViewById(R.id.scheduleview);
    dayList = (LinearLayout) vg.findViewById(R.id.daylist);

    /*
     * if(savedInstanceState != null) classList =
     * savedInstanceState.getParcelableArrayList("classList");
     */

    slidingDrawer.setOnDrawerCloseListener(this);
    slidingDrawer.setOnDrawerOpenListener(this);
    slidingDrawer.setVisibility(View.INVISIBLE);

    OkHttpClient client = new OkHttpClient();
    fetch = new parseTask(client);
    Utility.parallelExecute(fetch, false);
    return vg;
  }
 public void updateView(String restId, Boolean update) {
   this.restId = restId;
   if (!restId.equals("0") && (listOfLists.size() == 0 || update)) {
     if (mApp.getCachedTask(TASK_TAG) == null) {
       FetchMenuTask fetchMTask = new FetchMenuTask(TASK_TAG);
       prepareToLoad();
       Utility.parallelExecute(fetchMTask, restId, title);
     }
   }
 }