Back to project page android-utils.
The source code is released under:
Apache License
If you think the Android project android-utils listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.omegar.android.utils; // w ww . j av a 2 s . c o m import com.omegar.support.app.SupportActionBarActivity; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.support.v4.app.DialogFragment; public class BaseDialog extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { Logger.i("Created " + getClass().getSimpleName()); return super.onCreateDialog(savedInstanceState); } @Override public void onDismiss(DialogInterface dialog) { Logger.i("Dismissed " + getClass().getSimpleName()); super.onDismiss(dialog); } public void show(SupportActionBarActivity activity) { show(activity.getSupportFragmentManager(), BaseDialog.class.getSimpleName()); } }