Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
preparing release - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
y20k committed Mar 9, 2021
1 parent 2d88dbd commit 558b0fc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class PlayerService(): MediaBrowserServiceCompat() {
/* Overrides onStartCommand from Service */
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
super.onStartCommand(intent, flags, startId)
// handle start/stop requests issued via Intent - used for example by the home screen shortcuts
if (intent != null && intent.action == Keys.ACTION_STOP) {
player.stop()
}
Expand Down

0 comments on commit 558b0fc

Please sign in to comment.