Roll back previous change. It was not correct. The underlying problem was the dialog was being dismissed twice when using the TCMissingMotorDownloadAction.

This commit is contained in:
Kevin Ruland 2012-02-16 19:23:03 +00:00
parent 621938dc56
commit 597d4bec6a

View File

@ -136,8 +136,8 @@ public abstract class TCQueryAction extends Fragment {
protected void dismiss() {
AndroidLogWrapper.d(TCQueryAction.class,"dismiss the progress");
ProgressDialogFragment progress = (ProgressDialogFragment) getActivity().getSupportFragmentManager().findFragmentByTag(PROGRESS_DIALOG_TAG);
if ( progress != null && progress.isVisible()) {
progress.dismiss();
if ( progress != null ) {
getActivity().getSupportFragmentManager().beginTransaction().remove(progress).commit();
}
}