Skip to content

Commit f4a5b3b

Browse files
committed
set 'playback in background button' visible if there are videostreams
1 parent dfc46c3 commit f4a5b3b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,8 +1666,9 @@ public void handleResult(@NonNull final StreamInfo info) {
16661666

16671667
binding.detailControlsDownload.setVisibility(
16681668
StreamTypeUtil.isLiveStream(info.getStreamType()) ? View.GONE : View.VISIBLE);
1669-
binding.detailControlsBackground.setVisibility(info.getAudioStreams().isEmpty()
1670-
? View.GONE : View.VISIBLE);
1669+
binding.detailControlsBackground.setVisibility(
1670+
info.getAudioStreams().isEmpty() && info.getVideoStreams().isEmpty()
1671+
? View.GONE : View.VISIBLE);
16711672

16721673
final boolean noVideoStreams =
16731674
info.getVideoStreams().isEmpty() && info.getVideoOnlyStreams().isEmpty();

0 commit comments

Comments
 (0)