package goldzweigapps.tabs.Adapters;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import goldzweigapps.tabs.Items.AdapterItem;


public class ViewPagerAdapter extends FragmentPagerAdapter {
    private AdapterItem AdapterList;

    public ViewPagerAdapter(FragmentManager FragmentManger, AdapterItem AdapterList) {
        super(FragmentManger);
        this.AdapterList = AdapterList;

    }

    @Override
    public Fragment getItem(int position) {
        return AdapterList.getFragmentList().get(position);
    }

    @Override
    public int getCount() {

        return AdapterList.getFragmentList().size();
    }
    @Override
    public CharSequence getPageTitle(int position) {
        if (AdapterList.isTitle()) {
            return null;
        } else {
            return AdapterList.getTitleList().get(position);
        }
    }

}

@@ -148,32 +148,37 @@
 .v4.app.Fragment
+State
 PagerAdapter;%0A%0Ai
@@ -269,16 +269,21 @@
 Fragment
+State
 PagerAda

Update ViewPagerAdapter.java