From 529488a9af53a40f7c5d88190e461ee9733e7bce Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 8 Jun 2018 11:44:35 +0200 Subject: [PATCH] show error message Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/activity/FileDisplayActivity.java | 3 +++ src/main/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index f427aa4362..906a02cb09 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1812,6 +1812,9 @@ public class FileDisplayActivity extends HookActivity FileDetailFragment fileDetailFragment = (FileDetailFragment) getSecondFragment(); fileDetailFragment.getFileDetailActivitiesFragment().reload(); } + } else { + Snackbar.make(getSecondFragment().getView(), R.string.file_version_restored_error, + Snackbar.LENGTH_LONG).show(); } } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 2063d21bd1..b0a21e0adb 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -800,4 +800,5 @@ Restore file New version was created Successfully restored file version. + Error restoring file version!