Merge pull request #3583 from ByteHamster/fix-headset-button-play
Fixed pressing play from headset button
This commit is contained in:
commit
9df14af284
|
@ -22,6 +22,7 @@ class PlaybackServiceStateManager {
|
|||
void stopService() {
|
||||
stopForeground(true);
|
||||
playbackService.stopSelf();
|
||||
hasReceivedValidStartCommand = false;
|
||||
}
|
||||
|
||||
void stopForeground(boolean removeNotification) {
|
||||
|
@ -35,7 +36,6 @@ class PlaybackServiceStateManager {
|
|||
}
|
||||
}
|
||||
isInForeground = false;
|
||||
hasReceivedValidStartCommand = false;
|
||||
}
|
||||
|
||||
boolean isInForeground() {
|
||||
|
|
Loading…
Reference in New Issue