From 397fa5904ab20dc2bbd9bf203a43224aa6d7e9b7 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Wed, 12 Feb 2014 12:45:47 +0100 Subject: [PATCH] Prevent stuck progress dialog, but well done --- src/com/owncloud/android/ui/activity/FileActivity.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/com/owncloud/android/ui/activity/FileActivity.java b/src/com/owncloud/android/ui/activity/FileActivity.java index 894739dcc2..dc3ad0db2a 100644 --- a/src/com/owncloud/android/ui/activity/FileActivity.java +++ b/src/com/owncloud/android/ui/activity/FileActivity.java @@ -156,9 +156,6 @@ public class FileActivity extends SherlockFragmentActivity implements OnRemoteOp } if (mOperationsServiceBinder != null) { mOperationsServiceBinder.addOperationListener(FileActivity.this, mHandler); - if (!mOperationsServiceBinder.isPerformingBlockingOperation()) { - dismissLoadingDialog(); - } } } @@ -168,7 +165,6 @@ public class FileActivity extends SherlockFragmentActivity implements OnRemoteOp super.onStop(); if (mOperationsServiceBinder != null) { mOperationsServiceBinder.removeOperationListener(this); - mOperationsServiceBinder = null; } } @@ -178,6 +174,7 @@ public class FileActivity extends SherlockFragmentActivity implements OnRemoteOp super.onDestroy(); if (mOperationsServiceConnection != null) { unbindService(mOperationsServiceConnection); + mOperationsServiceBinder = null; } }