Skip to content

Commit

Permalink
feat : onStop에서 player 중지되는 부분 삭제
Browse files Browse the repository at this point in the history
youlalala committed Dec 8, 2023
1 parent 0fbb1ea commit 6031f84
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -80,11 +80,6 @@ class MainActivity : AppCompatActivity() {
connectToMediaSession()
}

override fun onStop() {
player.pause()
super.onStop()
}

private fun connectToMediaSession() {
val sessionToken = SessionToken(this, ComponentName(this, PlaybackService::class.java))
MediaController.Builder(this, sessionToken).buildAsync()

0 comments on commit 6031f84

Please sign in to comment.