浏览代码

Change error message when trying download a folder that does not exist

jabarros 10 年之前
父节点
当前提交
f737785b4f
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      res/values/strings.xml
  2. 1 1
      src/com/owncloud/android/utils/ErrorMessageAdapter.java

+ 0 - 1
res/values/strings.xml

@@ -323,7 +323,6 @@
 	<string name="prefs_category_security">Security</string>
 	<string name="prefs_category_security">Security</string>
 
 
 	<string name="prefs_instant_video_upload_path_title">Upload Video Path</string>
 	<string name="prefs_instant_video_upload_path_title">Upload Video Path</string>
-    <string name="download_folder_not_found">The %1$s folder is no longer available on the server</string>
     <string name="download_folder_failed_content">Download of %1$s folder could not be completed</string>
     <string name="download_folder_failed_content">Download of %1$s folder could not be completed</string>
 
 
 </resources>
 </resources>

+ 1 - 1
src/com/owncloud/android/utils/ErrorMessageAdapter.java

@@ -213,7 +213,7 @@ public class ErrorMessageAdapter {
                 String folderPathName = new File(
                 String folderPathName = new File(
                         ((SynchronizeFolderOperation) operation).getFolderPath()).getName();
                         ((SynchronizeFolderOperation) operation).getFolderPath()).getName();
                 if (result.getCode() == ResultCode.FILE_NOT_FOUND) {
                 if (result.getCode() == ResultCode.FILE_NOT_FOUND) {
-                    message = String.format(res.getString(R.string.download_folder_not_found),
+                    message = String.format(res.getString(R.string.sync_current_folder_was_removed),
                             folderPathName);
                             folderPathName);
 
 
                 } else {    // Generic error
                 } else {    // Generic error