Skip to content

Commit

Permalink
set 'playback in background button' visible if there are videostreams
Browse files Browse the repository at this point in the history
Co-Authored-By: evermind-zz <55653+evermind-zz@users.noreply.github.com>
  • Loading branch information
ShareASmile and evermind-zz committed Jul 14, 2024
1 parent a119f52 commit 36f9bcd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1664,8 +1664,9 @@ public void handleResult(@NonNull final StreamInfo info) {

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();
Expand Down

0 comments on commit 36f9bcd

Please sign in to comment.