Selaa lähdekoodia

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

jabarros 10 vuotta sitten
vanhempi
commit
f737785b4f

+ 0 - 1
res/values/strings.xml

@@ -323,7 +323,6 @@
 	<string name="prefs_category_security">Security</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>
 
 </resources>

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

@@ -213,7 +213,7 @@ public class ErrorMessageAdapter {
                 String folderPathName = new File(
                         ((SynchronizeFolderOperation) operation).getFolderPath()).getName();
                 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);
 
                 } else {    // Generic error