@@ -0,0 +1,1420 @@
+package de.philipphager.disclosure.util.ui;%0A%0Aimport android.os.Bundle;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.v4.app.Fragment;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport butterknife.ButterKnife;%0Aimport de.philipphager.disclosure.ApplicationComponent;%0Aimport de.philipphager.disclosure.DisclosureApp;%0Aimport de.philipphager.disclosure.feature.navigation.Navigates;%0Aimport de.philipphager.disclosure.feature.navigation.Navigator;%0Aimport javax.inject.Inject;%0A%0Apublic abstract class BaseFragment extends Fragment implements Navigates %7B%0A  @Inject Navigator navigator;%0A%0A  @Override public void onCreate(@Nullable Bundle savedInstanceState) %7B%0A    super.onCreate(savedInstanceState);%0A%0A    inject();%0A  %7D%0A%0A  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,%0A      Bundle savedInstanceState) %7B%0A    View view = inflater.inflate(getLayout(), container, false);%0A    ButterKnife.bind(this, view);%0A    return view;%0A  %7D%0A%0A  @Override public Navigator navigate() %7B%0A    return navigator;%0A  %7D%0A%0A  protected abstract int getLayout();%0A%0A  protected abstract void injectFragment(ApplicationComponent appComponent);%0A%0A  private void inject() %7B%0A    DisclosureApp application = (DisclosureApp) getActivity().getApplication();%0A    injectFragment(application.getApplicationComponent());%0A%0A    navigator.setActivity(getActivity());%0A  %7D%0A%7D%0A

Add BaseFragment