diff --git a/res/values-en-rGB/strings.xml b/res/values-en-rGB/strings.xml index 00276ec159..0e71f96386 100644 --- a/res/values-en-rGB/strings.xml +++ b/res/values-en-rGB/strings.xml @@ -313,9 +313,10 @@ Keep both local version server version - + + Sorry about that! Image preview - This image cannot be shown + Image can\'t be shown %1$s could not be copied to %2$s local folder Instant upload folder diff --git a/res/values/strings.xml b/res/values/strings.xml index c946ccd751..33fa8edfab 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -313,9 +313,10 @@ Keep both local version server version - + + Sorry about that! Image preview - This image cannot be shown + Image can\'t be shown %1$s could not be copied to %2$s local folder Instant upload folder diff --git a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java index e06c005150..29d1c96cc2 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -554,7 +554,7 @@ public class PreviewImageFragment extends FileFragment { if (getActivity() != null && (getActivity() instanceof PreviewImageActivity)) { ((PreviewImageActivity) getActivity()).toggleFullScreen(); } - setMessageForMultiList(mErrorMessageId, R.drawable.file_image); + setMessageForMultiList(mErrorMessageId, R.string.preview_sorry, R.drawable.file_image); } } @@ -568,9 +568,10 @@ public class PreviewImageFragment extends FileFragment { } } - public void setMessageForMultiList(@StringRes int headline, @DrawableRes int icon) { + public void setMessageForMultiList(@StringRes int headline, @StringRes int message, @DrawableRes int icon) { if (mMultiListContainer != null && mMultiListMessage != null) { mMultiListHeadline.setText(headline); + mMultiListMessage.setText(message); mMultiListIcon.setImageResource(icon); mMultiListIcon.setVisibility(View.VISIBLE);