private OperationsServiceBinder mOperationsServiceBinder = null;
+ private boolean mResumed = false;
+
protected FileDownloaderBinder mDownloaderBinder = null;
protected FileUploaderBinder mUploaderBinder = null;
private ServiceConnection mDownloadServiceConnection, mUploadServiceConnection = null;
@Override
protected void onResume() {
super.onResume();
-
+ mResumed = true;
if (mOperationsServiceBinder != null) {
doOnResumeAndBound();
}
if (mOperationsServiceBinder != null) {
mOperationsServiceBinder.removeOperationListener(this);
}
-
+ mResumed = false;
super.onPause();
}
if (result.getCode() == ResultCode.SHARE_FORBIDDEN) {
String password = operation.getPassword();
if ((password == null || password.length() == 0) &&
- !getCapabilities().getFilesSharingPublicEnabled().isFalse())
+ getCapabilities().getFilesSharingPublicEnabled().isUnknown())
{
// Was tried without password, but not sure that it's optional. Try with password.
// Try with password before giving up.
/*if (!mOperationsServiceBinder.isPerformingBlockingOperation()) {
dismissLoadingDialog();
}*/
- doOnResumeAndBound();
+ if (mResumed) {
+ doOnResumeAndBound();
+ }
} else {
return;