diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-09-27 12:43:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-27 12:43:03 +0200 |
commit | a6bffa797a7167d13d7500db930f628b95137d91 (patch) | |
tree | 333209315110ac31581e3d6da727d5e24d92ce03 | |
parent | 25bd5bbeedb702968d812a30a6203f670fb6947a (diff) | |
parent | 0c0e50d3ae2a0446e14f21231615089d798ae3fd (diff) | |
download | AntennaPod-a6bffa797a7167d13d7500db930f628b95137d91.zip |
Merge pull request #3458 from ByteHamster/store-foreground-state-correctly
Fixed another phantom service is running notification
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index e479a7711..7d23b4c4c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -451,7 +451,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { notificationBuilder.loadIcon(getPlayable()); } } - startForeground(NOTIFICATION_ID, notificationBuilder.build()); + stateManager.startForeground(NOTIFICATION_ID, notificationBuilder.build()); } NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this); |