Browse Source

Parse and show the error of invalid characters coming from the server side. Show new message in CreationFolder

masensio 9 years ago
parent
commit
80108e336f

+ 1 - 1
owncloud-android-library

@@ -1 +1 @@
-Subproject commit 9fc332eef9733ad1d857ea2b470b260b271fd3ca
+Subproject commit 2b09aa2a89eb38a9abc8e98d3a1bc356f5872a1e

+ 2 - 0
src/com/owncloud/android/utils/ErrorMessageAdapter.java

@@ -152,6 +152,8 @@ public class ErrorMessageAdapter {
             } else if (isNetworkError(result.getCode())) {
                 message = getErrorMessage(result, res);
                 
+            } else if (result.getCode() == ResultCode.INVALID_CHARACTER_DETECT_IN_SERVER) {
+                message = res.getString(R.string.filename_forbidden_charaters_from_server);
             } else {
                 message = res.getString(R.string.create_dir_fail_msg);
             }