diff --git a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index 5c55a80904f3..28a324a41320 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1096,8 +1096,6 @@ public void onBackPressed() { resetTitleBarAndScrolling(); setDrawerAllFiles(); } - } else if (leftFragment instanceof PreviewTextStringFragment) { - createMinFragments(null); } else if (leftFragment instanceof PreviewPdfFragment) { super.onBackPressed(); } else {