mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Prevent stuck progress dialog, but well done
This commit is contained in:
parent
858ca289f6
commit
397fa5904a
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue