From: David A. Velasco Date: Tue, 8 Oct 2013 09:24:15 +0000 (+0200) Subject: Included name of the 'lost' folder in the toast warning about current folder removed... X-Git-Tag: oc-android-1.5.5~155^2~20 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/79493448d97e77f71152822a6acf16f6ad2b2643?ds=inline Included name of the 'lost' folder in the toast warning about current folder removed in the server --- diff --git a/res/values/strings.xml b/res/values/strings.xml index f36f7d7d..14f0e1a0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -129,7 +129,7 @@ Some local files were forgotten %1$d files out of the %2$s directory could not be copied into As of version 1.3.16, files uploaded from this device are copied into the local %1$s folder to prevent data loss when a single file is synced with multiple accounts.\n\nDue to this change, all files uploaded in previous versions of this app were copied into the %2$s folder. However, an error prevented the completion of this operation during account synchronization. You may either leave the file(s) as is and remove the link to %3$s, or move the file(s) into the %1$s directory and retain the link to %4$s.\n\nListed below are the local file(s), and the the remote file(s) in %5$s they were linked to. - Current folder does not exist + Folder %1$s does not exist anymore "Move all" "All files were moved" "Some files could not be moved" diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 249691f5..febcd598 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -877,7 +877,9 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa if (currentDir == null) { // current folder was removed from the server - Toast.makeText(FileDisplayActivity.this, getString(R.string.sync_current_folder_was_removed), Toast.LENGTH_LONG) + Toast.makeText( FileDisplayActivity.this, + String.format(getString(R.string.sync_current_folder_was_removed), mDirectories.getItem(0)), + Toast.LENGTH_LONG) .show(); onBackPressed();