Example usage for android.support.v4.app DialogFragment getShowsDialog

List of usage examples for android.support.v4.app DialogFragment getShowsDialog

Introduction

In this page you can find the example usage for android.support.v4.app DialogFragment getShowsDialog.

Prototype

public boolean getShowsDialog() 

Source Link

Document

Return the current value of #setShowsDialog(boolean) .

Usage

From source file:com.wujilin.doorbell.starter.FragmentStarter.java

@Override
protected void exit(Fragment starter) {
    if (starter instanceof DialogFragment) {
        DialogFragment fragment = (DialogFragment) starter;
        if (fragment.getShowsDialog()) {
            fragment.dismiss();/*from ww w. j a v  a 2s  . co  m*/
            return;
        }
    }
    Activity activity = getActivity();
    if (activity != null) {
        activity.finish();
    }
}