Merge pull request #2234 from CedricCabessa/no-pause-on-cast
don't pause while casting if headset is disconnected
This commit is contained in:
commit
352b6747cf
@ -1433,7 +1433,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||
* Pauses playback if PREF_PAUSE_ON_HEADSET_DISCONNECT was set to true.
|
||||
*/
|
||||
private void pauseIfPauseOnDisconnect() {
|
||||
if (UserPreferences.isPauseOnHeadsetDisconnect()) {
|
||||
if (UserPreferences.isPauseOnHeadsetDisconnect() && !isCasting()) {
|
||||
if (mediaPlayer.getPlayerStatus() == PlayerStatus.PLAYING) {
|
||||
transientPause = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user