Roll back previous change. It was not correct. The underlying problem was the dialo...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 16 Feb 2012 19:23:03 +0000 (19:23 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 16 Feb 2012 19:23:03 +0000 (19:23 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@423 180e2498-e6e9-4542-8430-84ac67f01cd8

android/src/net/sf/openrocket/android/thrustcurve/TCQueryAction.java

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