Example usage for android.app Dialog setDismissMessage

List of usage examples for android.app Dialog setDismissMessage

Introduction

In this page you can find the example usage for android.app Dialog setDismissMessage.

Prototype

public void setDismissMessage(@Nullable Message msg) 

Source Link

Document

Set a message to be sent when the dialog is dismissed.

Usage

From source file:com.frostwire.android.gui.views.AbstractDialog.java

@Override
public void onDestroyView() {
    // android bug: http://code.google.com/p/android/issues/detail?id=17423
    Dialog dialog = getDialog();

    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }/*from   w w  w.  j a  va 2s .co m*/

    super.onDestroyView();
}

From source file:com.fingerprint.FingerprintAuthenticationDialogFragment.java

@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    if (dialog != null && getRetainInstance())
        dialog.setDismissMessage(null);

    super.onDestroyView();
}

From source file:com.esri.arcgisruntime.sample.generateofflinemapwithlocalbasemap.LocalBasemapAlertDialogFragment.java

@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    // handles https://code.google.com/p/android/issues/detail?id=17423
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }/* ww w.  j  a v a2 s.co m*/
    super.onDestroyView();
}