Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created June 13, 2019 07:46
Show Gist options
  • Save PatilShreyas/6c7c8fca3d1a10ebdbe49094cb44e821 to your computer and use it in GitHub Desktop.
Save PatilShreyas/6c7c8fca3d1a10ebdbe49094cb44e821 to your computer and use it in GitHub Desktop.
...
mDialog.setOnShowListener(this);
mDialog.setOnCancelListener(this);
mDialog.setOnDismissListener(this);
}
@Override
public void onShow(DialogInterface dialogInterface) {
// Dialog is Displayed
}
@Override
public void onCancel(DialogInterface dialogInterface) {
// Dialog is Cancelled
}
@Override
public void onDismiss(DialogInterface dialogInterface) {
// Dialog is Dismissed
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment