Skip to content

Commit 1391249

Browse files
committed
Only pause player when playing
1 parent 29788b3 commit 1391249

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ class MusicService : Service(), MediaPlayer.OnPreparedListener, MediaPlayer.OnEr
325325
}
326326

327327
fun handleDismiss() {
328-
pauseTrack(false)
328+
if (isPlaying()) {
329+
pauseTrack(false)
330+
}
329331
stopForegroundAndNotification()
330332
}
331333

0 commit comments

Comments
 (0)