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

Fixed lost of share link when token exists

This commit is contained in:
David A. Velasco 2015-11-24 13:44:42 +01:00
parent 1e3060633d
commit 9cf96a10ce

View File

@ -90,7 +90,8 @@ public class ShareToRemoteOperationResultParser {
resultData.add(share); resultData.add(share);
// build the share link if not in the response (only received when the share is created) // build the share link if not in the response (only received when the share is created)
if (share.getShareType() == ShareType.PUBLIC_LINK && if (share.getShareType() == ShareType.PUBLIC_LINK &&
share.getShareLink() == null && (share.getShareLink() == null ||
share.getShareLink().length() <= 0) &&
share.getToken().length() > 0 share.getToken().length() > 0
) { ) {
if (mServerBaseUri != null) { if (mServerBaseUri != null) {