hide sort/list group on previews

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-07-29 00:22:29 +02:00
parent fdb4489e38
commit e02b9adf8a
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -2144,6 +2144,7 @@ public class FileDisplayActivity extends FileActivity
return; // not reachable under normal conditions
}
if (showPreview && file.isDown() && !file.isDownloading() || streamMedia) {
showSortListGroup(false);
Fragment mediaFragment = PreviewMediaFragment.newInstance(file, user.get(), startPlaybackPosition, autoplay);
setSecondFragment(mediaFragment);
updateFragmentsVisibility(true);
@ -2197,6 +2198,7 @@ public class FileDisplayActivity extends FileActivity
* @param folder {@link OCFile} to preview its rich workspace.
*/
public void startRichWorkspacePreview(OCFile folder) {
showSortListGroup(false);
Bundle args = new Bundle();
args.putParcelable(EXTRA_FILE, folder);
Fragment textPreviewFragment = Fragment.instantiate(getApplicationContext(),