package com.thebluealliance.androidclient.adapters; import com.thebluealliance.androidclient.fragments.gameday.GamedayWebcastsFragment; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class GamedayFragmentPagerAdapter extends FragmentPagerAdapter { public static final String[] TITLES = {"Webcasts"}; public static final int TAB_WEBCASTS = 1; public GamedayFragmentPagerAdapter(FragmentManager fm) { super(fm); } @Override public CharSequence getPageTitle(int position) { return TITLES[position]; } @Override public int getCount() { return TITLES.length; } @Override public Fragment getItem(int position) { Fragment fragment; switch (position) { default: /*case TAB_TICKER: fragment = GamedayTickerFragment.newInstance(); fragment.setRetainInstance(true); break; */ case TAB_WEBCASTS: fragment = GamedayWebcastsFragment.newInstance(); fragment.setRetainInstance(true); break; } return fragment; } }