package com.axel_nicolas.tub.ui.adapter;

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

import com.axel_nicolas.tub.ui.fragment.LineFragment;
import com.axel_nicolas.tub.ui.fragment.StopFragment;

/**
 * Created by axell on 05/11/2016.
 */

public class MainActivityPageAdapter extends FragmentPagerAdapter {

    private static final int PAGES_COUNT = 3;

    public MainActivityPageAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        Fragment fragment = null;
        switch (position) {
            case 0:
                fragment = new LineFragment();
            case 1:
                fragment = new StopFragment();
            case 2:
                fragment = new LineFragment();
        }
        return fragment;
    }

    @Override
    public int getCount() {
        return PAGES_COUNT;
    }
}

@@ -737,32 +737,55 @@
 LineFragment();%0A
+                break;%0A
             case
@@ -827,32 +827,55 @@
 StopFragment();%0A
+                break;%0A
             case
@@ -917,32 +917,55 @@
 LineFragment();%0A
+                break;%0A
         %7D%0A      

Fix Fragment Switch