Source:
<code>public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); final LayoutInflater inflater = LayoutInflater.from(getActivity()); final LinearLayout parent = (LinearLayout) view.findViewById(R.id.root); ViewHolder holder; holder = createViewHolder(inflater, parent); holder.typeView.setIcon(FontAwesomeIcons.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(FontAwesomeIcons.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(), courseData); } } }); final Bundle arguments = getArguments(); @ScreenDef String screenName = null; if (arguments != null) { <START> screenName = getArguments().getString(Router.EXTRA_SCREEN_NAME); <END> if (!TextUtils.isEmpty(screenName)) { switch (screenName) { case COURSE_HANDOUTS: environment.getRouter().showHandouts(getActivity(), courseData); break; case COURSE_ANNOUNCEMENTS: environment.getRouter().showCourseAnnouncement(getActivity(), courseData); break; } } } }</code><technical_language>arguments instated of getArguments() initialized</technical_language>

Target:
public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); final LayoutInflater inflater = LayoutInflater.from(getActivity()); final LinearLayout parent = (LinearLayout) view.findViewById(R.id.root); ViewHolder holder; holder = createViewHolder(inflater, parent); holder.typeView.setIcon(FontAwesomeIcons.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(FontAwesomeIcons.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(), courseData); } } }); final Bundle arguments = getArguments(); @ScreenDef String screenName; if (arguments != null) { screenName = arguments.getString(Router.EXTRA_SCREEN_NAME); if (!TextUtils.isEmpty(screenName)) { switch (screenName) { case COURSE_HANDOUT: environment.getRouter().showHandouts(getActivity(), courseData); break; case COURSE_ANNOUNCEMENT: environment.getRouter().showCourseAnnouncement(getActivity(), courseData); break; } arguments.putString(Router.EXTRA_SCREEN_NAME, null); } } }