Source:
public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); LayoutInflater inflater = getLayoutInflater(savedInstanceState); ViewHolder holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_list_alt); holder.titleView.setText(R.string.courseware_title); holder.subtitleView.setText(R.string.courseware_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Activity activity = getActivity(); if ( activity != null && activity instanceof ShowCourseOutlineCallback){ ((ShowCourseOutlineCallback)activity).showCourseOutline(); } } }); holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_comments_o); holder.titleView.setText(R.string.discussion_title); holder.subtitleView.setText(R.string.discussion_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { fetchCourseDiscussionMetaData(); } }); holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_file_text_o); holder.titleView.setText(R.string.handouts_title); holder.subtitleView.setText(R.string.handouts_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if ( courseData != null ) environment.getRouter().showHandouts(getActivity(), courseData); } }); holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_bullhorn); holder.titleView.setText(R.string.announcement_title); holder.subtitleView.setText(R.string.announcement_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if ( courseData != null ) environment.getRouter().showCourseAnnouncement(getActivity(), environment.getConfig(), courseData); } }); }

Target:
public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); LayoutInflater inflater = LayoutInflater.from(getActivity()); ViewHolder holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_list_alt); holder.titleView.setText(R.string.courseware_title); holder.subtitleView.setText(R.string.courseware_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Activity activity = getActivity(); if ( activity != null && activity instanceof ShowCourseOutlineCallback){ ((ShowCourseOutlineCallback)activity).showCourseOutline(); } } }); holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_comments_o); holder.titleView.setText(R.string.discussion_title); holder.subtitleView.setText(R.string.discussion_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { fetchCourseDiscussionMetaData(); } }); holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_file_text_o); holder.titleView.setText(R.string.handouts_title); holder.subtitleView.setText(R.string.handouts_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if ( courseData != null ) environment.getRouter().showHandouts(getActivity(), courseData); } }); holder = createViewHolder(inflater, parent); holder.typeView.setIcon(Iconify.IconValue.fa_bullhorn); holder.titleView.setText(R.string.announcement_title); holder.subtitleView.setText(R.string.announcement_subtitle); holder.rowView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if ( courseData != null ) environment.getRouter().showCourseAnnouncement(getActivity(), environment.getConfig(), courseData); } }); }