Code example for Dialog

Methods: dismiss

0
    final Dialog dialog = dialogForId.get(id);
    if (dialog == null) {
      throw new IllegalArgumentException();
    } 
 
    dialog.dismiss();
  } 
 
  @Implementation 
  public final void removeDialog(int id) {
    dialogForId.remove(id);
  } 
 
  @Implementation 
  public final boolean showDialog(int id, Bundle bundle) {
    Dialog dialog = null;
    this.lastShownDialogId = id;
 
    dialog = dialogForId.get(id);
 
    if (dialog == null) {