diff options
author | ByteHamster <info@bytehamster.com> | 2019-07-25 14:01:24 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-07-25 14:01:24 +0200 |
commit | de13f9b5644d4d8bd51683e845bfebd433d1f9c1 (patch) | |
tree | 918fd909951155b9af23f4bde76ee2ec8e1b5b92 /core | |
parent | 1651b95f774a61333a5d020cc8925c139d38e48e (diff) | |
download | AntennaPod-de13f9b5644d4d8bd51683e845bfebd433d1f9c1.zip |
Updating pendingIntent
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 4 |
1 files changed, 2 insertions, 2 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 bc8725432..4da764d5a 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 @@ -501,9 +501,9 @@ public class PlaybackService extends MediaBrowserServiceCompat { intent.putExtra(EXTRA_ALLOW_STREAM_THIS_TIME, true); PendingIntent pendingIntent; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { - pendingIntent = PendingIntent.getForegroundService(this, 0, intent, 0); + pendingIntent = PendingIntent.getForegroundService(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); } else { - pendingIntent = PendingIntent.getService(this, 0, intent, 0); + pendingIntent = PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); } NotificationCompat.Builder builder = new NotificationCompat.Builder(this, NotificationUtils.CHANNEL_ID_USER_ACTION) |