package net.fabricemk.android.mycv.fragments;

import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

import net.fabricemk.android.mycv.R;
import net.fabricemk.android.mycv.adapters.CareerPagerAdapter;
import net.fabricemk.android.mycv.parsers.SkillJsonParser;
import net.fabricemk.android.mycv.ui.activities.IToolbarable;

public class CareerFragment extends Fragment {

    Toolbar mToolbar;

    ViewPager mViewPager;
    TabLayout mTabLayout;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRetainInstance(true);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_career, container, false);

        mToolbar = (Toolbar) v.findViewById(R.id.toolbar);
        mViewPager = (ViewPager) v.findViewById(R.id.view_pager);
        mTabLayout = (TabLayout) v.findViewById(R.id.tabs);

        return v;
    }

    @Override
    public void onActivityCreated(Bundle savedState) {
        super.onActivityCreated(savedState);

        mToolbar.setTitle(getString(R.string.career));
        ((IToolbarable)getActivity()).setupToolbar(mToolbar);

        mViewPager.setAdapter(new CareerPagerAdapter(getActivity(), getFragmentManager()));

//        mTabLayout.setupWithViewPager(mViewPager);

        /* Temporary fix because of a bug in Android Support Design Library
         * 22.2.1 with TabLayout
         * https://code.google.com/p/android/issues/detail?id=180462
         */
        mTabLayout.post(new Runnable() {
            @Override
            public void run() {
                mTabLayout.setupWithViewPager(mViewPager);
            }
        });
    }

}

@@ -1757,18 +1757,16 @@
 r()));%0A%0A
-//
         
@@ -1811,379 +1811,8 @@
 er);
-%0A%0A        /* Temporary fix because of a bug in Android Support Design Library%0A         * 22.2.1 with TabLayout%0A         * https://code.google.com/p/android/issues/detail?id=180462%0A         */%0A        mTabLayout.post(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                mTabLayout.setupWithViewPager(mViewPager);%0A            %7D%0A        %7D);
 %0A   

Remove the temporary hack used until now to load the data of the Tabs in the Career/Education Fragment because v23 of design support library fix the problem