From: masensio Date: Tue, 2 Jun 2015 11:07:54 +0000 (+0200) Subject: Parse and show the error of invalid characters coming from the server side. Show... X-Git-Tag: oc-android-1.7.2~1^2~20^2~7 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/80108e336f66460f13596ea2b13064f5eb7852db?ds=inline Parse and show the error of invalid characters coming from the server side. Show new message in CreationFolder --- 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); }