package org.ccci.gto.android.common.support.v4.fragment;

import android.support.v4.app.DialogFragment;

import org.ccci.gto.android.common.support.v4.util.FragmentUtils;

public class AbstractDialogFragment extends DialogFragment {
    protected final <T> T findView(final Class<T> clazz, final int id) {
        return FragmentUtils.findView(this, clazz, id);
    }

    protected final <T> T getListener(final Class<T> clazz) {
        return FragmentUtils.getListener(this, clazz);
    }
}

@@ -47,24 +47,51 @@
 .fragment;%0A%0A
+import android.app.Dialog;%0A
 import andro
@@ -253,16 +253,413 @@
 gment %7B%0A
+%0A    /* BEGIN lifecycle */%0A%0A    @Override%0A    public void onDestroyView() %7B%0A        // Work around bug:%0A        // http://code.google.com/p/android/issues/detail?id=17423%0A        final Dialog dialog = this.getDialog();%0A        if ((dialog != null) && this.getRetainInstance()) %7B%0A            dialog.setDismissMessage(null);%0A        %7D%0A%0A        super.onDestroyView();%0A    %7D%0A%0A    /* END lifecycle */%0A%0A
     prot

work around an outstanding issue with DialogFragments in the support library