List of usage examples for android.app DialogFragment show
public int show(FragmentTransaction transaction, String tag)
From source file:com.android.mail.compose.ComposeActivity.java
private void doDiscard() { // Only need to ask for confirmation if the draft is in a dirty state. if (isDraftDirty()) { final DialogFragment frag = new DiscardConfirmDialogFragment(); frag.show(getFragmentManager(), "discard confirm"); } else {//from w w w . ja va 2s.c om doDiscardWithoutConfirmation(); } }
From source file:com.android.mail.compose.ComposeActivity.java
/** * Show an error because the user has entered an invalid recipient. *//* ww w .j a v a 2 s. c o m*/ private void showRecipientErrorDialog(final String message) { final DialogFragment frag = RecipientErrorDialogFragment.newInstance(message); frag.show(getFragmentManager(), "recipient error"); }
From source file:com.android.mail.compose.ComposeActivity.java
private void showSendConfirmDialog(final int messageId, final boolean showToast, final ArrayList<String> recipients) { final DialogFragment frag = SendConfirmDialogFragment.newInstance(messageId, showToast, recipients); frag.show(getFragmentManager(), "send confirm"); }
From source file:com.android.mail.ui.AbstractActivityController.java
private void showStorageErrorDialog() { DialogFragment fragment = (DialogFragment) mFragmentManager .findFragmentByTag(SYNC_ERROR_DIALOG_FRAGMENT_TAG); if (fragment == null) { fragment = SyncErrorDialogFragment.newInstance(); }/*from www .j ava 2s. c o m*/ fragment.show(mFragmentManager, SYNC_ERROR_DIALOG_FRAGMENT_TAG); }
From source file:com.tct.mail.ui.AbstractActivityController.java
private void showSortDialog() { DialogFragment fragment = SortChooseDialog.newInstance(SortHelper.getCurrentSort()); fragment.show(mActivity.getFragmentManager(), SortChooseDialog.TAG); }
From source file:com.tct.mail.compose.ComposeActivity.java
private void doDiscard() { final DialogFragment frag = new DiscardConfirmDialogFragment(); //AM: peng-zhang 2015-02-15 EMAIL BUGFIX_930453 MOD_S //frag.show(getFragmentManager(), "discard confirm"); try {/*from w w w . j a v a 2s . co m*/ frag.show(getFragmentManager(), "discard confirm"); } catch (IllegalStateException e) { LogUtils.e(LOG_TAG, "FragmentManager checkStateLoss!"); e.printStackTrace(); } //AM: peng-zhang 2015-02-15 EMAIL BUGFIX_930453 MOD_E }