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:
parent
e782cfa704
commit
d96e31b5e5
@ -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 {
|
||||
|
@ -115,7 +115,7 @@ public class ShareXMLParser {
|
||||
public boolean isFailure() {
|
||||
return mStatusCode == FAILURE;
|
||||
}
|
||||
public boolean isFilNotFound() {
|
||||
public boolean isFileNotFound() {
|
||||
return mStatusCode == FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user