Skip to content

Commit

Permalink
Fix RewriteMediaManager emitting onQueueStatusChanged with a queue wh…
Browse files Browse the repository at this point in the history
…en there is no audio items available
  • Loading branch information
nielsvanvelzen committed Aug 5, 2024
1 parent 7bc99d2 commit 8c3be44
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ class RewriteMediaManager(
}

playbackManager.queue.entry.onEach { entry ->
val baseItem = entry?.baseItem
notifyListeners {
onQueueStatusChanged(entry != null)
onQueueStatusChanged(baseItem?.mediaType == MediaType.AUDIO)
}
}.launchIn(this)

Expand Down

0 comments on commit 8c3be44

Please sign in to comment.