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 <[email protected]>
  • Loading branch information
ShareASmile and evermind-zz committed Jul 14, 2024
1 parent 55d5df3 commit c0d57fa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1684,8 +1684,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 c0d57fa

Please sign in to comment.