I have a Behavior Relay to control `MediaPlayer` (...
# rx
m
I have a Behavior Relay to control
MediaPlayer
(in Activity) from
viewModel
, and I have another for settings .. now I want the player relay to only
skipUntil
the settings emit an enable sound item. from docs
skipUntil
only waits for an Observable to emit at least an item. but what if need to check on that item too, should I use something else or there is something missing
m
Just filter the second observable
e.g.
a.skipUntil(b.filter { //Check for wanted items })
m
I did that but does this work with the tow observables changes, I mean I did that but it seems that the predicate evaluated only the first time.