resume playing only if the user unplugs via wired headset or bluetooth while episode in progress (#5611)
This commit is contained in:
parent
b25ed64250
commit
7cd813dc23
|
@ -1532,8 +1532,8 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
*/
|
||||
private void pauseIfPauseOnDisconnect() {
|
||||
Log.d(TAG, "pauseIfPauseOnDisconnect()");
|
||||
transientPause = (mediaPlayer.getPlayerStatus() == PlayerStatus.PLAYING);
|
||||
if (UserPreferences.isPauseOnHeadsetDisconnect() && !isCasting()) {
|
||||
transientPause = true;
|
||||
mediaPlayer.pause(!UserPreferences.isPersistNotify(), false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue