1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-11-17 07:37:11 +00:00

Video details tablet layout

This commit is contained in:
Vasily
2018-08-22 08:32:58 +03:00
parent 607ca84fcc
commit 216e2367c6
2 changed files with 510 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ public class VideoDetailFragment
private TextView thumbsDisabledTextView;
private TextView nextStreamTitle;
private LinearLayout relatedStreamRootLayout;
private View relatedStreamRootLayout;
private LinearLayout relatedStreamsView;
private ImageButton relatedStreamExpandButton;
@@ -623,7 +623,10 @@ public class VideoDetailFragment
infoItemBuilder.buildView(relatedStreamsView, info.getNextVideo()));
relatedStreamsView.addView(getSeparatorView());
relatedStreamRootLayout.setVisibility(View.VISIBLE);
} else nextStreamTitle.setVisibility(View.GONE);
} else {
nextStreamTitle.setVisibility(View.GONE);
relatedStreamRootLayout.setVisibility(View.GONE);
}
if (info.getRelatedStreams() != null
&& !info.getRelatedStreams().isEmpty() && showRelatedStreams) {