Clear temporary playback speed when switching to another episode

This commit is contained in:
ByteHamster 2021-03-07 11:30:14 +01:00
parent f6e3843813
commit 1646ba4088
1 changed files with 4 additions and 0 deletions

View File

@ -544,6 +544,10 @@ public class PlaybackService extends MediaBrowserServiceCompat {
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
playableLoaded -> {
if (!playable.getIdentifier().equals(
PlaybackPreferences.getCurrentlyPlayingFeedMediaId())) {
PlaybackPreferences.clearCurrentlyPlayingTemporaryPlaybackSpeed();
}
mediaPlayer.playMediaObject(playableLoaded, stream, startWhenPrepared,
prepareImmediately);
addPlayableToQueue(playableLoaded);