/** * This tells the progress dialog to dismiss itself after guaranteeing to be shown for the * specified time in {@link #show(FragmentManager, CharSequence, CharSequence, long)}. */ @Override public void dismiss() { mAllowStateLoss = false; dismissWhenReady(); }
/** * This tells the progress dialog to dismiss itself (with state loss) after guaranteeing to be * shown for the specified time in * {@link #show(FragmentManager, CharSequence, CharSequence, long)}. */ @Override public void dismissAllowingStateLoss() { mAllowStateLoss = true; dismissWhenReady(); }