diff --git a/android/app/src/main/java/com/ohdodok/catchytape/MainActivity.kt b/android/app/src/main/java/com/ohdodok/catchytape/MainActivity.kt index 89d1968..a800c68 100644 --- a/android/app/src/main/java/com/ohdodok/catchytape/MainActivity.kt +++ b/android/app/src/main/java/com/ohdodok/catchytape/MainActivity.kt @@ -80,6 +80,11 @@ 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()