Fix timing issue with speed settings per podcast (#4713)
when moving to the next episode when phone is locked
This commit is contained in:
parent
943a5a7aff
commit
28f72aa586
@ -1020,6 +1020,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||||||
*/
|
*/
|
||||||
private void onPlaybackEnded(MediaType mediaType, boolean stopPlaying) {
|
private void onPlaybackEnded(MediaType mediaType, boolean stopPlaying) {
|
||||||
Log.d(TAG, "Playback ended");
|
Log.d(TAG, "Playback ended");
|
||||||
|
PlaybackPreferences.clearCurrentlyPlayingTemporaryPlaybackSpeed();
|
||||||
if (stopPlaying) {
|
if (stopPlaying) {
|
||||||
taskManager.cancelPositionSaver();
|
taskManager.cancelPositionSaver();
|
||||||
cancelPositionObserver();
|
cancelPositionObserver();
|
||||||
@ -1058,7 +1059,6 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||||||
*/
|
*/
|
||||||
private void onPostPlayback(final Playable playable, boolean ended, boolean skipped,
|
private void onPostPlayback(final Playable playable, boolean ended, boolean skipped,
|
||||||
boolean playingNext) {
|
boolean playingNext) {
|
||||||
PlaybackPreferences.clearCurrentlyPlayingTemporaryPlaybackSpeed();
|
|
||||||
if (playable == null) {
|
if (playable == null) {
|
||||||
Log.e(TAG, "Cannot do post-playback processing: media was null");
|
Log.e(TAG, "Cannot do post-playback processing: media was null");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user