From 741cc24d11786cf17f890c91b7dcfa64a23a77a6 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 9 Jun 2020 11:16:36 +0200 Subject: [PATCH] fix #5468 if we have no activity, do nothing Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/preview/PreviewImageFragment.java | 4 ---- src/main/res/values/strings.xml | 1 - 2 files changed, 5 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java index f594064466..cca06b2cf1 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -750,10 +750,6 @@ public class PreviewImageFragment extends FileFragment implements Injectable { } } ).show(); - } else { - Snackbar.make(mMultiListContainer, - R.string.resized_image_not_possible, - Snackbar.LENGTH_INDEFINITE).show(); } } catch (IllegalArgumentException e) { Log_OC.d(TAG, e.getMessage()); diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 6851665366..fc3eab33da 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -642,7 +642,6 @@ Fetching most recent version of the file. Unknown - No resized image available. No resized image available. Download full image? The self-hosted productivity platform that keeps you in control