From e7cd9ce6bc70132212b2a804c2dc91c1dc5af392 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 28 Jul 2020 23:18:29 +0200 Subject: [PATCH] properly reset header for preview fragments Signed-off-by: Andy Scherzinger --- .../com/owncloud/android/ui/fragment/OCFileListFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java index 57e30e7b0e..25d4843fef 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -1001,10 +1001,13 @@ public class OCFileListFragment extends ExtendedListFragment implements ((FileDisplayActivity) mContainerActivity).startContactListFragment(file); } else if (PreviewTextFileFragment.canBePreviewed(file)) { setFabVisible(false); + resetHeaderScrollingState(); ((FileDisplayActivity) mContainerActivity).startTextPreview(file, false); } else if (file.isDown()) { if (PreviewMediaFragment.canBePreviewed(file)) { // media preview + setFabVisible(false); + resetHeaderScrollingState(); ((FileDisplayActivity) mContainerActivity).startMediaPreview(file, 0, true, true, false); } else { mContainerActivity.getFileOperationsHelper().openFile(file); @@ -1018,6 +1021,8 @@ public class OCFileListFragment extends ExtendedListFragment implements if (PreviewMediaFragment.canBePreviewed(file) && account.getServer().getVersion() .isMediaStreamingSupported() && !file.isEncrypted()) { // stream media preview on >= NC14 + setFabVisible(false); + resetHeaderScrollingState(); ((FileDisplayActivity) mContainerActivity).startMediaPreview(file, 0, true, true, true); } else if (FileMenuFilter.isEditorAvailable(requireContext().getContentResolver(), accountManager.getUser(),