@Override public Fragment getItem(int position) { switch (position) { case 0: return NewsFragment.newInstance(mSelectedChapter.getGplusId()); case 1: return InfoFragment.newInstance(mSelectedChapter.getGplusId()); case 2: return EventFragment.newInstance(mSelectedChapter.getGplusId()); } return null; }