Skip to content

Commit 6ddd4a7

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
VideoDetailFragment: hide relatedItemsLayout in tablet mode after fullscreen
Fixes: #7617
1 parent 9ba89d4 commit 6ddd4a7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,11 @@ public void onFullscreenStateChanged(final boolean fullscreen) {
18991899
}
19001900

19011901
if (binding.relatedItemsLayout != null) {
1902-
binding.relatedItemsLayout.setVisibility(fullscreen ? View.GONE : View.VISIBLE);
1902+
if (showRelatedItems) {
1903+
binding.relatedItemsLayout.setVisibility(fullscreen ? View.GONE : View.VISIBLE);
1904+
} else {
1905+
binding.relatedItemsLayout.setVisibility(View.GONE);
1906+
}
19031907
}
19041908
scrollToTop();
19051909

0 commit comments

Comments
 (0)