Skip to content

Commit

Permalink
Fix cannot stop through notification
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZong committed Apr 26, 2021
1 parent 398ad53 commit aad12f2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ open class SimpleMusicPlayerImpl(
PlayerAction.PAUSED -> {
player.pause()
}
PlayerAction.STOPPED -> {
resetFlags()
resetPlayerState()
}
else -> {
}
}
Expand All @@ -396,7 +400,8 @@ open class SimpleMusicPlayerImpl(
requestPlay()
}
PlayerAction.STOPPED -> {
player.stop()
resetFlags()
resetPlayerState()
}
else -> {
}
Expand Down

0 comments on commit aad12f2

Please sign in to comment.