Fixed another phantom service is running notification
Steps to reproduce: - Send STOP key two times - Service starts foreground but does not stop again because stateManager does not know about foreground state
This commit is contained in:
parent
f9e7e9aeb6
commit
0c0e50d3ae
|
@ -451,7 +451,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
notificationBuilder.loadIcon(getPlayable());
|
notificationBuilder.loadIcon(getPlayable());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
startForeground(NOTIFICATION_ID, notificationBuilder.build());
|
stateManager.startForeground(NOTIFICATION_ID, notificationBuilder.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
||||||
|
|
Loading…
Reference in New Issue