소스 검색

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

Signed-off-by: Lisa Kirchhofer <lisa.kirchhofer@bawagpsk.com>
Lisa Kirchhofer 3 년 전
부모
커밋
0051189017
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java

+ 2 - 5
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) {
         if (showPreview && file.isDown() && !file.isDownloading() || streamMedia) {
             showSortListGroup(false);
             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);
             Fragment mediaFragment = PreviewMediaFragment.newInstance(file, user.get(), startPlaybackPosition, autoplay);
             setLeftFragment(mediaFragment);
             setLeftFragment(mediaFragment);
-            updateActionBarTitleAndHomeButton(file);
-            setFile(file);
+            binding.rightFragmentContainer.setVisibility(View.GONE);
+            super.updateActionBarTitleAndHomeButton(file);
         } else {
         } else {
             Intent previewIntent = new Intent();
             Intent previewIntent = new Intent();
             previewIntent.putExtra(EXTRA_FILE, file);
             previewIntent.putExtra(EXTRA_FILE, file);