This commit is contained in:
AndyScherzinger 2018-06-09 14:15:15 +02:00
parent 1b22eadec0
commit 29fcc56865
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -21,6 +21,8 @@
package com.owncloud.android.operations;
import android.text.TextUtils;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.operations.RemoteOperation;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
@ -136,9 +138,8 @@ public class UpdateSharePermissionsOperation extends SyncOperation {
share.setIsFolder(false);
}
share.setIsPasswordProtected((mPassword != null && mPassword.length() > 0));
share.setIsPasswordProtected(!TextUtils.isEmpty(mPassword));
getStorageManager().saveShare(share);
}
}