Bugfix: Issue #9060 (Status bar with sorting/view mode disappears after playing video)

Signed-off-by: Lisa Kirchhofer <lisa.kirchhofer@bawagpsk.com>
This commit is contained in:
Lisa Kirchhofer 2021-10-22 15:58:25 +02:00
parent 2ceb34ae97
commit 0051189017

View file

@ -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);