Commit b5e5b713 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

PlaybackService: Fix restoration of audio pause state

If one had both AUDIOFOCUS_LOSS_TRANSIENT and AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK events,
then we did not resume audio playback.
parent 7898c757
...@@ -365,7 +365,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback { ...@@ -365,7 +365,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
if (mLossTransientVolume != -1) { if (mLossTransientVolume != -1) {
mMediaPlayer.setVolume(mLossTransientVolume); mMediaPlayer.setVolume(mLossTransientVolume);
mLossTransientVolume = -1; mLossTransientVolume = -1;
} else if (mLossTransient) { }
if (mLossTransient) {
if (wasPlaying) if (wasPlaying)
mMediaPlayer.play(); mMediaPlayer.play();
mLossTransient = false; mLossTransient = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment