content: package com.mxt.anitrend.adapter.pager.index;
  
  import android.content.Context;
  
  import androidx.fragment.app.Fragment;
  import androidx.fragment.app.FragmentManager;
  
  import com.mxt.anitrend.R;
  import com.mxt.anitrend.base.custom.pager.BaseStatePageAdapter;
  import com.mxt.anitrend.util.KeyUtil;
  import com.mxt.anitrend.util.graphql.GraphUtil;
  import com.mxt.anitrend.view.fragment.list.MediaListFragment;
  
  /**
   * Created by max on 2017/12/17.
   * users list page adapter
   */
  
  public class MediaListPageAdapter extends BaseStatePageAdapter {
  
      public MediaListPageAdapter(FragmentManager fragmentManager, Context context) {
          super(fragmentManager, context);
          setPagerTitles(R.array.media_list_status);
      }
  
      /**
       * Return the Fragment associated with a specified position.
       *
       * @param position
       */
      @Override
      public Fragment getItem(int position) {
          return MediaListFragment.newInstance(getParams(), GraphUtil.INSTANCE.getDefaultQuery(false)
                  .putVariable(KeyUtil.arg_statusIn, KeyUtil.MediaListStatus[position]));
      }
  }
  