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

OC-2845: Fix app crashes when trying to share the Shared folder

This commit is contained in:
masensio 2014-02-05 17:57:29 +01:00
parent e782cfa704
commit d96e31b5e5
2 changed files with 5 additions and 2 deletions

View File

@ -142,8 +142,11 @@ public class CreateShareRemoteOperation extends RemoteOperation {
}
result.setData(sharesObjects);
}
} else if (xmlParser.isFilNotFound()){
} else if (xmlParser.isFileNotFound()){
result = new RemoteOperationResult(ResultCode.FILE_NOT_FOUND);
} else {
result = new RemoteOperationResult(false, status, post.getResponseHeaders());
}
} else {

View File

@ -115,7 +115,7 @@ public class ShareXMLParser {
public boolean isFailure() {
return mStatusCode == FAILURE;
}
public boolean isFilNotFound() {
public boolean isFileNotFound() {
return mStatusCode == FILE_NOT_FOUND;
}