Home | History | Annotate | Download | only in app

Lines Matching defs:dialog

614  * but not in the foreground, such as one sitting behind a foreground dialog)
668 Dialog mDialog;
981 private Dialog createDialog(Integer dialogId, Bundle state, Bundle args) {
982 final Dialog dialog = onCreateDialog(dialogId, args);
983 if (dialog == null) {
986 dialog.dispatchOnCreate(state);
987 return dialog;
1231 // save each dialog's bundle, gather the ids
1450 // Close any open search dialog
2984 protected Dialog onCreateDialog(int id) {
2997 * this method the first time, and hang onto it thereafter. Any dialog
3005 * <p>If you would like an opportunity to prepare your dialog before it is shown,
3006 * override {@link #onPrepareDialog(int, Dialog, Bundle)}.
3008 * @param id The id of the dialog.
3009 * @param args The dialog arguments provided to {@link #showDialog(int, Bundle)}.
3010 * @return The dialog. If you return null, the dialog will not be created.
3012 * @see #onPrepareDialog(int, Dialog, Bundle)
3022 protected Dialog onCreateDialog(int id, Bundle args) {
3028 * {@link #onPrepareDialog(int, Dialog, Bundle)}.
3031 protected void onPrepareDialog(int id, Dialog dialog) {
3032 dialog.setOwnerActivity(this);
3036 * Provides an opportunity to prepare a managed dialog before it is being
3038 * {@link #onPrepareDialog(int, Dialog)} for compatibility.
3041 * Override this if you need to update a managed dialog based on the state
3043 * dialog might want to be updated with the current time. You should call
3045 * will set this Activity as the owner activity on the Dialog.
3047 * @param id The id of the managed dialog.
3048 * @param dialog The dialog.
3049 * @param args The dialog arguments provided to {@link #showDialog(int, Bundle)}.
3060 protected void onPrepareDialog(int id, Dialog dialog, Bundle args) {
3061 onPrepareDialog(id, dialog);
3079 * Show a dialog managed by this activity. A call to {@link #onCreateDialog(int, Bundle)}
3081 * id. From thereafter, the dialog will be automatically saved and restored.
3086 * <p>Each time a dialog is shown, {@link #onPrepareDialog(int, Dialog, Bundle)} will
3089 * @param id The id of the managed dialog.
3090 * @param args Arguments to pass through to the dialog. These will be saved
3091 * and restored for you. Note that if the dialog is already created,
3093 * arguments but {@link #onPrepareDialog(int, Dialog, Bundle)} will be.
3094 * If you need to rebuild the dialog, call {@link #removeDialog(int)} first.
3095 * @return Returns true if the Dialog was created; false is returned if
3098 * @see Dialog
3100 * @see #onPrepareDialog(int, Dialog, Bundle)
3130 * Dismiss a dialog that was previously shown via {@link #showDialog(int)}.
3132 * @param id The id of the managed dialog.
3138 * @see #onPrepareDialog(int, Dialog, Bundle)
3160 * Creates an exception to throw if a user passed in a dialog id that is
3164 return new IllegalArgumentException("no dialog with id " + id + " was ever "
3169 * Removes any internal references to a dialog managed by this Activity.
3170 * If the dialog is showing, it will dismiss it as part of the clean up.
3172 * <p>This can be useful if you know that you will never show a dialog again and
3177 * currently have an associated dialog.</p>
3179 * @param id The id of the managed dialog.
3182 * @see #onPrepareDialog(int, Dialog, Bundle)
3262 * the search dialog. Made available for testing purposes.