diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 1a7a08f..eb4d4a1 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -20,8 +20,8 @@ android { applicationId = "com.ohdodok.catchytape" minSdk = 26 targetSdk = 33 - versionCode = 3 - versionName = "0.3.0" + versionCode = 4 + versionName = "0.3.1" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } 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()