From 80108e336f66460f13596ea2b13064f5eb7852db Mon Sep 17 00:00:00 2001 From: masensio Date: Tue, 2 Jun 2015 13:07:54 +0200 Subject: [PATCH] Parse and show the error of invalid characters coming from the server side. Show new message in CreationFolder --- owncloud-android-library | 2 +- src/com/owncloud/android/utils/ErrorMessageAdapter.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/owncloud-android-library b/owncloud-android-library index 9fc332ee..2b09aa2a 160000 --- a/owncloud-android-library +++ b/owncloud-android-library @@ -1 +1 @@ -Subproject commit 9fc332eef9733ad1d857ea2b470b260b271fd3ca +Subproject commit 2b09aa2a89eb38a9abc8e98d3a1bc356f5872a1e diff --git a/src/com/owncloud/android/utils/ErrorMessageAdapter.java b/src/com/owncloud/android/utils/ErrorMessageAdapter.java index 12a1a5ac..f7d7413a 100644 --- a/src/com/owncloud/android/utils/ErrorMessageAdapter.java +++ b/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); } -- 2.11.0