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 e2e4970f4c..397e443991 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -2186,13 +2186,10 @@ public class FileDisplayActivity extends FileActivity } if (showPreview && file.isDown() && !file.isDownloading() || streamMedia) { showSortListGroup(false); - CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) findViewById(R.id.root_layout).getLayoutParams(); - params.setBehavior(null); - Fragment mediaFragment = PreviewMediaFragment.newInstance(file, user.get(), startPlaybackPosition, autoplay); setLeftFragment(mediaFragment); - updateActionBarTitleAndHomeButton(file); - setFile(file); + binding.rightFragmentContainer.setVisibility(View.GONE); + super.updateActionBarTitleAndHomeButton(file); } else { Intent previewIntent = new Intent(); previewIntent.putExtra(EXTRA_FILE, file);