Skip to content

Commit 97a8183

Browse files
committed
start foreground activity at FINISH_IF_NOT_PLAYING
1 parent 770ab18 commit 97a8183

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/musicplayer/services

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/musicplayer/services/MusicService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class MusicService : Service(), MediaPlayer.OnPreparedListener, MediaPlayer.OnEr
181181
}
182182

183183
MediaButtonReceiver.handleIntent(mMediaSession!!, intent)
184-
if (action != DISMISS && action != FINISH && action != FINISH_IF_NOT_PLAYING) {
184+
if (action != DISMISS && action != FINISH) {
185185
startForegroundOrNotify()
186186
}
187187
return START_NOT_STICKY

0 commit comments

Comments
 (0)