package com.thebluealliance.androidclient.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.astuetz.PagerSlidingTabStrip;
import com.thebluealliance.androidclient.R;
import com.thebluealliance.androidclient.Utilities;
import com.thebluealliance.androidclient.adapters.TeamListFragmentPagerAdapter;

public class AllTeamsListFragment extends Fragment {

    private ViewPager mViewPager;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View v = inflater.inflate(R.layout.fragment_team_list_fragment_pager, container, false);
        mViewPager = (ViewPager) v.findViewById(R.id.team_pager);
        mViewPager.setAdapter(new TeamListFragmentPagerAdapter(getChildFragmentManager()));
        mViewPager.setPageMargin(Utilities.getPixelsFromDp(getActivity(), 16));

        PagerSlidingTabStrip tabs = (PagerSlidingTabStrip) v.findViewById(R.id.team_pager_tabs);
        tabs.setViewPager(mViewPager);
        return v;
    }
}

@@ -555,16 +555,56 @@
 ewPager;
+%0A    private PagerSlidingTabStrip mTabs;
 %0A%0A    @O
@@ -959,100 +959,8 @@
 r);%0A
-        mViewPager.setAdapter(new TeamListFragmentPagerAdapter(getChildFragmentManager()));%0A
     
@@ -1035,25 +1035,24 @@
 , 16));%0A
-%0A
         
 PagerSli
@@ -1043,16 +1043,25 @@
         
+mTabs = (
 PagerSli
@@ -1076,37 +1076,8 @@
 trip
- tabs = (PagerSlidingTabStrip
 ) v.
@@ -1112,24 +1112,557 @@
 _tabs);%0A
+%0A        /**%0A         * Fix for really strange bug. Menu bar items wouldn't appear only when navigated to from 'Events' in the nav drawer%0A         * Bug is some derivation of this: https://code.google.com/p/android/issues/detail?id=29472%0A         * So set the view pager's adapter in another thread to avoid a race condition, or something. %0A         */%0A        mViewPager.post(new Runnable() %7B%0A            public void run() %7B%0A                mViewPager.setAdapter(new TeamListFragmentPagerAdapter(getChildFragmentManager()));%0A       
         
 tabs.set
@@ -1653,17 +1653,19 @@
         
-t
+ mT
 abs.setV
@@ -1682,24 +1682,51 @@
 ViewPager);%0A
+            %7D%0A        %7D);%0A%0A
         retu

Fix strange menu bug with teams