mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-10 09:26:19 +00:00
Removed constrain to parse only public shares
This commit is contained in:
parent
cea7054a3d
commit
d9eb3655fd
@ -117,8 +117,10 @@ public class GetRemoteSharesForFileOperation extends RemoteOperation {
|
||||
ArrayList<Object> sharesObjects = new ArrayList<Object>();
|
||||
for (OCShare share: mShares) {
|
||||
// Build the link
|
||||
if (( share.getShareLink() == null) &&
|
||||
(share.getToken().length() > 0)) {
|
||||
if ( share.getShareType() == ShareType.PUBLIC_LINK &&
|
||||
share.getShareLink() == null &&
|
||||
share.getToken().length() > 0
|
||||
) {
|
||||
String linkToken = ShareUtils.getSharingToken(
|
||||
client.getOwnCloudVersion());
|
||||
share.setShareLink(client.getBaseUri() + linkToken +
|
||||
|
@ -348,9 +348,7 @@ public class ShareXMLParser {
|
||||
}
|
||||
|
||||
private boolean isValidShare(OCShare share) {
|
||||
return ((share.getIdRemoteShared() > -1) &&
|
||||
(share.getShareType() == ShareType.PUBLIC_LINK) // at this moment we only care about public shares
|
||||
);
|
||||
return (share.getIdRemoteShared() > -1);
|
||||
}
|
||||
|
||||
private void fixPathForFolder(OCShare share) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user