Merge pull request #3458 from ByteHamster/store-foreground-state-correctly

Fixed another phantom service is running notification
This commit is contained in:
H. Lehmann
2019-09-27 12:43:03 +02:00
committed by GitHub

View File

@ -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);