android.app.Activity.onPrepareDialog()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中android.app.Activity.onPrepareDialog()方法的一些代码示例,展示了Activity.onPrepareDialog()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onPrepareDialog()方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onPrepareDialog

Activity.onPrepareDialog介绍

暂无

代码示例

代码示例来源:origin: k9mail/k-9

@Override
public void onPrepareDialog(int dialogId, @NonNull Dialog dialog) {
  AlertDialog alert = (AlertDialog) dialog;
  switch (dialogId) {
    case DIALOG_CONFIRM: {
      int messageCount = messagesToDelete.size();
      alert.setMessage(getResources().getQuantityString(
          R.plurals.dialog_confirm_delete_messages, messageCount, messageCount));
      break;
    }
  }
  super.onPrepareDialog(dialogId, dialog);
}

代码示例来源:origin: shazam/android-aspects

@Override
protected void onPrepareDialog(int id, @NonNull Dialog dialog, Bundle args) {
  super.onPrepareDialog(id, dialog, args);
  dispatcher.dispatchOnPrepareDialog(this, id, dialog, args);
}

代码示例来源:origin: limboemu/limbo

@Override
protected void onPrepareDialog(int id, Dialog dialog) {
  super.onPrepareDialog(id, dialog);
  if (dialog instanceof ConnectionSettable) {
    ((ConnectionSettable) dialog).setConnection(connection);
  }
}

代码示例来源:origin: labexp/osmtracker-android

@Override
protected void onPrepareDialog(int id, Dialog dialog) {
  switch(id){
  case DIALOG_TEXT_NOTE:
    // we need to reset Values like uuid of the dialog,
    // otherwise we would overwrite an existing waypoint
    ((TextNoteDialog)dialog).resetValues();
    break;
  }
  super.onPrepareDialog(id, dialog);
}

代码示例来源:origin: geniusgithub/AndroidDialer

@Override
protected void onPrepareDialog(int id, Dialog dialog, Bundle args) {
  if (id == R.id.dialog_fail_to_export_with_reason) {
    ((AlertDialog)dialog).setMessage(mErrorReason);
  } else {
    super.onPrepareDialog(id, dialog, args);
  }
}

代码示例来源:origin: shazam/android-aspects

@Override
protected void onPrepareDialog(int id, @NonNull Dialog dialog) {
  super.onPrepareDialog(id, dialog);
  dispatcher.dispatchOnPrepareDialog(this, id, dialog);
}

代码示例来源:origin: openintents/notepad

@Override
protected void onPrepareDialog(int id, Dialog dialog) {
  super.onPrepareDialog(id, dialog);
  switch (id) {
    case DIALOG_ID_SAVE:
      break;
    case DIALOG_ID_OPEN:
      break;
    case DIALOG_ID_NO_FILE_MANAGER_AVAILABLE:
      DownloadOIAppDialog.onPrepareDialog(this, dialog);
      break;
  }
}

代码示例来源:origin: tcoxon/XkcdViewer

break;
super.onPrepareDialog(id, dialog);

相关文章

Activity类方法