package ch.cern.cvmfs.fragments;

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


public class CVMFSFragment extends Fragment {

    public boolean onBackPressed() {
        return false;
    }

    protected void replaceFragment(CVMFSFragment fragment, int containerId) {
        getChildFragmentManager().beginTransaction().replace(containerId, fragment).commit();
        getActivity().overridePendingTransition(0, 0);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        onPrepareInterface();
    }

    protected CVMFSFragment getCurrentFragment(int containerId) {
        try {
            return (CVMFSFragment) getChildFragmentManager().findFragmentById(containerId);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    protected void onPrepareInterface() {

    }
}

@@ -128,16 +128,25 @@
 %0Apublic 
+abstract 
 class CV
@@ -920,32 +920,82 @@
 rn null;%0A    %7D%0A%0A
+    /**%0A     * Called after onViewCreated%0A     */%0A
     protected vo
@@ -988,24 +988,33 @@
   protected 
+abstract 
 void onPrepa
@@ -1030,16 +1030,8 @@
 ce()
- %7B%0A%0A    %7D
+;
 %0A%7D%0A

Create abstract method onPrepareInterface