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() {
|
void stopService() {
|
||||||
stopForeground(true);
|
stopForeground(true);
|
||||||
playbackService.stopSelf();
|
playbackService.stopSelf();
|
||||||
|
hasReceivedValidStartCommand = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void stopForeground(boolean removeNotification) {
|
void stopForeground(boolean removeNotification) {
|
||||||
@ -35,7 +36,6 @@ class PlaybackServiceStateManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
isInForeground = false;
|
isInForeground = false;
|
||||||
hasReceivedValidStartCommand = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isInForeground() {
|
boolean isInForeground() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user