Skip to content

Commit

Permalink
10-03-2023 solve notitfication wakes up automatically after being killed
Browse files Browse the repository at this point in the history
  • Loading branch information
Phong-Kaster committed Mar 10, 2023
1 parent e64cf65 commit de4ecf7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Binary file added app/release/app-release.apk
Binary file not shown.
20 changes: 20 additions & 0 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.musik",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class HomeActivity : AppCompatActivity() {
*/
override fun onDestroy() {
super.onDestroy()
if( isBounded )
if( isBounded && !exoPlayer.isPlaying )
{
unbindService(serviceConnection)
isBounded = false
Expand Down

0 comments on commit de4ecf7

Please sign in to comment.