Home | History | Annotate | Download | only in dialog

Lines Matching refs:dialog

17 package com.android.contacts.common.dialog;
19 import android.app.Dialog;
28 * Indeterminate progress dialog wrapped up in a DialogFragment to work even when the device
30 * dialog. There is an additional parameter of the minimum amount of time to display the progress
31 * dialog even after a call to dismiss the dialog {@link #dismiss()} or
34 * To create and show the progress dialog, use
38 * To dismiss the dialog, use {@link #dismiss()} or {@link #dismissAllowingStateLoss()} on the
52 private Dialog mOldDialog;
64 * Creates and shows an indeterminate progress dialog. Once the progress dialog is shown, it
65 * will be shown for at least the minDisplayTime (in milliseconds), so that the progress dialog
88 public Dialog onCreateDialog(Bundle savedInstanceState) {
89 // Create the progress dialog and set its properties
90 final ProgressDialog dialog = new ProgressDialog(getActivity());
91 dialog.setIndeterminate(true);
92 dialog.setIndeterminateDrawable(null);
93 dialog.setTitle(mTitle);
94 dialog.setMessage(mMessage);
96 return dialog;
106 // Upon returning, we want to dismiss this progress dialog fragment.
120 * If we don't check that this onDismiss callback isn't for the old progress dialog from before
121 * the device orientation change, then this will cause the newly created dialog after the
125 public void onDismiss(DialogInterface dialog) {
126 if (mOldDialog != null && mOldDialog == dialog) {
127 // This is the callback from the old progress dialog that was already dismissed before
131 super.onDismiss(dialog);
135 * Save the old dialog that is about to get destroyed in case this is due to a change
137 * {@link #onDismiss(DialogInterface)} in case the callback happens after a new progress dialog
147 * This tells the progress dialog to dismiss itself after guaranteeing to be shown for the
157 * This tells the progress dialog to dismiss itself (with state loss) after guaranteeing to be
168 * Tells the progress dialog to dismiss itself after guaranteeing that the dialog had been
173 // Compute how long the dialog has been showing
186 * Actually dismiss the dialog fragment.
192 // It is safe to dismiss this dialog fragment.
199 // If mActivityReady is false, then this dialog fragment has already passed the onStop
200 // state. This can happen if the user hit the 'home' button before this dialog fragment was
202 // In the event that this dialog fragment is re-attached and reaches onStart (e.g.,
204 // has re-attached this dialog fragment), because the mCalledSuperDismiss flag was set to
205 // true, this dialog fragment will be dismissed within onStart. So, there's nothing else