mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-12-03 06:58:05 +00:00
set 'playback in background button' visible if there are videostreams
This commit is contained in:
@@ -1666,8 +1666,9 @@ public final class VideoDetailFragment
|
||||
|
||||
binding.detailControlsDownload.setVisibility(
|
||||
StreamTypeUtil.isLiveStream(info.getStreamType()) ? View.GONE : View.VISIBLE);
|
||||
binding.detailControlsBackground.setVisibility(info.getAudioStreams().isEmpty()
|
||||
? View.GONE : View.VISIBLE);
|
||||
binding.detailControlsBackground.setVisibility(
|
||||
info.getAudioStreams().isEmpty() && info.getVideoStreams().isEmpty()
|
||||
? View.GONE : View.VISIBLE);
|
||||
|
||||
final boolean noVideoStreams =
|
||||
info.getVideoStreams().isEmpty() && info.getVideoOnlyStreams().isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user