set 'playback in background button' visible if there are videostreams
This commit is contained in:
parent
5469887830
commit
1cf3b9fa23
1 changed files with 3 additions and 2 deletions
|
|
@ -1666,8 +1666,9 @@ public final class VideoDetailFragment
|
||||||
|
|
||||||
binding.detailControlsDownload.setVisibility(
|
binding.detailControlsDownload.setVisibility(
|
||||||
StreamTypeUtil.isLiveStream(info.getStreamType()) ? View.GONE : View.VISIBLE);
|
StreamTypeUtil.isLiveStream(info.getStreamType()) ? View.GONE : View.VISIBLE);
|
||||||
binding.detailControlsBackground.setVisibility(info.getAudioStreams().isEmpty()
|
binding.detailControlsBackground.setVisibility(
|
||||||
? View.GONE : View.VISIBLE);
|
info.getAudioStreams().isEmpty() && info.getVideoStreams().isEmpty()
|
||||||
|
? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
final boolean noVideoStreams =
|
final boolean noVideoStreams =
|
||||||
info.getVideoStreams().isEmpty() && info.getVideoOnlyStreams().isEmpty();
|
info.getVideoStreams().isEmpty() && info.getVideoOnlyStreams().isEmpty();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue