projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed cookie policy
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
operations
/
RemoteOperationResult.java
diff --git
a/src/com/owncloud/android/operations/RemoteOperationResult.java
b/src/com/owncloud/android/operations/RemoteOperationResult.java
index
5701476
..
f840f9a
100644
(file)
--- a/
src/com/owncloud/android/operations/RemoteOperationResult.java
+++ b/
src/com/owncloud/android/operations/RemoteOperationResult.java
@@
-85,7
+85,8
@@
public class RemoteOperationResult implements Serializable {
OAUTH2_ERROR_ACCESS_DENIED,
QUOTA_EXCEEDED,
ACCOUNT_NOT_FOUND,
OAUTH2_ERROR_ACCESS_DENIED,
QUOTA_EXCEEDED,
ACCOUNT_NOT_FOUND,
- ACCOUNT_EXCEPTION
+ ACCOUNT_EXCEPTION,
+ ACCOUNT_NOT_NEW
}
private boolean mSuccess = false;
}
private boolean mSuccess = false;
@@
-297,6
+298,9
@@
public class RemoteOperationResult implements Serializable {
} else if (mCode == ResultCode.LOCAL_STORAGE_NOT_MOVED) {
return "Error while moving file to final directory";
} else if (mCode == ResultCode.LOCAL_STORAGE_NOT_MOVED) {
return "Error while moving file to final directory";
+
+ } else if (mCode == ResultCode.ACCOUNT_NOT_NEW) {
+ return "Account already existing when creating a new one";
}
return "Operation finished with HTTP status code " + mHttpCode + " (" + (isSuccess() ? "success" : "fail") + ")";
}
return "Operation finished with HTTP status code " + mHttpCode + " (" + (isSuccess() ? "success" : "fail") + ")";