Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
youlalala committed Dec 7, 2023
2 parents b33a432 + 4c9106f commit 0fbb1ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0fbb1ea

Please sign in to comment.