1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +00:00

Fixed creation of shares without password

This commit is contained in:
David A. Velasco 2014-02-04 14:15:34 +01:00
parent 09b1c3c15a
commit 764fb1058f

View File

@ -113,7 +113,9 @@ public class CreateShareRemoteOperation extends RemoteOperation {
post.addParameter(PARAM_SHARE_TYPE, Integer.toString(mShareType.getValue()));
post.addParameter(PARAM_SHARE_WITH, mShareWith);
post.addParameter(PARAM_PUBLIC_UPLOAD, Boolean.toString(mPublicUpload));
post.addParameter(PARAM_PASSWORD, mPassword);
if (mPassword != null && mPassword.length() > 0) {
post.addParameter(PARAM_PASSWORD, mPassword);
}
post.addParameter(PARAM_PERMISSIONS, Integer.toString(mPermissions));
status = client.executeMethod(post);