docs: @Override
      public void onDismiss(DialogInterface dialog) {
          if (mOldDialog != null && mOldDialog == dialog) {
              // This is the callback from the old progress dialog that was already dismissed before
              // the device orientation change, so just ignore it.
              return;
          }
          super.onDismiss(dialog);
      }