From ae2373e2596c0e7600aeb782d04b5386186c75f5 Mon Sep 17 00:00:00 2001 From: Jonas Sandrock Date: Tue, 25 Jul 2017 20:06:20 +0200 Subject: [PATCH] Picture "details "page reappear when it shouldn't. #1221 --- .../com/owncloud/android/ui/activity/FileDisplayActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 580b8c1210..e5de3406c3 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -99,7 +99,6 @@ import com.owncloud.android.ui.preview.PreviewMediaFragment; import com.owncloud.android.ui.preview.PreviewTextFragment; import com.owncloud.android.ui.preview.PreviewVideoActivity; import com.owncloud.android.utils.DataHolderUtil; -import com.owncloud.android.utils.DisplayUtils; import com.owncloud.android.utils.ErrorMessageAdapter; import com.owncloud.android.utils.MimeTypeUtil; import com.owncloud.android.utils.PermissionUtil; @@ -1036,6 +1035,7 @@ public class FileDisplayActivity extends HookActivity //if PreviewImageActivity called this activity and mDualPane==false then calls PreviewImageActivity again if((getIntent().getAction()!=null && getIntent().getAction().equalsIgnoreCase(ACTION_DETAILS)) && !mDualPane){ getIntent().setAction(null); + getIntent().putExtra(EXTRA_FILE, (OCFile) null); startImagePreview(getFile()); }