Skip to content

Commit

Permalink
Should not restart audio service, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
izderadicka committed Apr 30, 2018
1 parent 8b7bb45 commit 9cc7bdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
applicationId "eu.zderadicka.audioserve"
minSdkVersion 21
targetSdkVersion 27
versionCode 7
versionName "0.6.0"
versionCode 8
versionName "0.6.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/eu/zderadicka/audioserve/AudioService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ mediaSessionConnector.setErrorMessageProvider(messageProvider);
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
Log.d(LOG_TAG, "Started Audio Service with action ${intent?.action}")
if (intent == null) {
//started by system after kill
Log.w(LOG_TAG, "Intent, null but always should start with intent")

} else {
when (intent.action) {
Expand All @@ -560,7 +560,7 @@ mediaSessionConnector.setErrorMessageProvider(messageProvider);
}
}

return Service.START_STICKY
return Service.START_NOT_STICKY
}

private fun saveCurrentlyListened() {
Expand Down

0 comments on commit 9cc7bdb

Please sign in to comment.