@@ -0,0 +1,1063 @@
+package de.philipphager.disclosure.util.ui;%0A%0Aimport android.os.Bundle;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.v7.app.AppCompatDialogFragment;%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 BaseDialogFragment extends AppCompatDialogFragment implements Navigates %7B%0A  @Inject protected 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 Navigator navigate() %7B%0A    return navigator;%0A  %7D%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 base class for dialog fragments