From 2c0b970044b3180786e165588d5d94ada0c90797 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 12 Mar 2023 20:09:12 +0100 Subject: [PATCH] Notify Android Auto that the queue changed (#6373) --- .../antennapod/core/service/playback/PlaybackService.java | 2 ++ 1 file changed, 2 insertions(+) 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 053d852eb..488724665 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 @@ -1083,6 +1083,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { DBWriter.deleteFeedMediaOfItem(PlaybackService.this, media.getId()); Log.d(TAG, "Episode Deleted"); } + notifyChildrenChanged(getString(R.string.queue_label)); } } @@ -1675,6 +1676,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { if (playable instanceof FeedMedia) { long itemId = ((FeedMedia) playable).getItem().getId(); DBWriter.addQueueItem(this, false, true, itemId); + notifyChildrenChanged(getString(R.string.queue_label)); } }