casting: pause playback if speed hold was paused when started

This commit is contained in:
Marcus Hanestad 2025-09-10 09:14:01 +02:00
commit ab4924408b

View file

@ -110,7 +110,7 @@ class CastView : ConstraintLayout {
try {
val d = StateCasting.instance.activeDevice ?: return@subscribe;
if (!_speedHoldWasPlaying) {
d.resumePlayback()
d.pausePlayback()
}
d.changeSpeed(_speedHoldPrevRate)
} catch (e: Throwable) {