X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/1db11eb586d00cba2d484e29cf0fef1fecc21f43..f737785b4f708d2bff23d08bb7dde4ae34ee5533:/src/com/owncloud/android/utils/ErrorMessageAdapter.java diff --git a/src/com/owncloud/android/utils/ErrorMessageAdapter.java b/src/com/owncloud/android/utils/ErrorMessageAdapter.java index 9e077c0a..9f138041 100644 --- a/src/com/owncloud/android/utils/ErrorMessageAdapter.java +++ b/src/com/owncloud/android/utils/ErrorMessageAdapter.java @@ -210,13 +210,16 @@ public class ErrorMessageAdapter { } else if (operation instanceof SynchronizeFolderOperation) { if (!result.isSuccess()) { + String folderPathName = new File( + ((SynchronizeFolderOperation) operation).getFolderPath()).getName(); if (result.getCode() == ResultCode.FILE_NOT_FOUND) { - message = res.getString(R.string.download_folder_not_found); + message = String.format(res.getString(R.string.sync_current_folder_was_removed), + folderPathName); } else { // Generic error // Show a Message, operation finished without success - message = String.format(res.getString(R.string.downloader_download_folder_failed_content), new File( - ((SynchronizeFolderOperation) operation).getFolderPath()).getName()); + message = String.format(res.getString(R.string.download_folder_failed_content), + folderPathName); } } }