From cac79d9a0dc9a4d3665dc5ff08389c943088781f Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Sun, 14 May 2017 10:46:28 -0300 Subject: [PATCH] Improve behavior on audio focus gain --- app/src/main/java/org/schabi/newpipe/player/BasePlayer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java b/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java index fb010481d..9a4d49fda 100644 --- a/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java @@ -320,7 +320,6 @@ public abstract class BasePlayer implements ExoPlayer.EventListener, AudioManage if (DEBUG) Log.d(TAG, "onAudioFocusGain() called"); if (simpleExoPlayer != null) simpleExoPlayer.setVolume(DUCK_AUDIO_TO); animateAudio(DUCK_AUDIO_TO, 1f, DUCK_DURATION); - simpleExoPlayer.setPlayWhenReady(true); } protected void onAudioFocusLoss() {