mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-01-20 09:59:46 +00:00
onNext() is called after onSubscribe() when creating a PlayQueueAdapter. For that reason the last broadcasted event is applied to the UI state although it is already reflected in the PlayQueue that was used to initialize the adapter. This is the intended behavior of the previously used event broadcaster of the type BehaviorSubject<>. The broadcaster's type was changed to PublishSubject<> which does not emit the last event after onSubscribe(). Ref: https://github.com/TeamNewPipe/NewPipe/issues/9669