mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Fix CR
This commit is contained in:
parent
1b22eadec0
commit
29fcc56865
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue