Skip to content

Commit

Permalink
don't resume playback when headset is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
UdeshyaDhungana committed Jan 9, 2023
1 parent 81671bc commit 23ba8c3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,6 @@ class MediaPlayerHolder:
when (intent.getIntExtra("state", -1)) {
// 0 means disconnected
HEADSET_DISCONNECTED -> pauseMediaPlayer()
// 1 means connected
HEADSET_CONNECTED -> resumeMediaPlayer()
}
}

Expand Down

0 comments on commit 23ba8c3

Please sign in to comment.