Notify Android Auto that the queue changed (#6373)

This commit is contained in:
ByteHamster 2023-03-12 20:09:12 +01:00 committed by GitHub
parent 86c11584b5
commit 2c0b970044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1083,6 +1083,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
DBWriter.deleteFeedMediaOfItem(PlaybackService.this, media.getId()); DBWriter.deleteFeedMediaOfItem(PlaybackService.this, media.getId());
Log.d(TAG, "Episode Deleted"); Log.d(TAG, "Episode Deleted");
} }
notifyChildrenChanged(getString(R.string.queue_label));
} }
} }
@ -1675,6 +1676,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
if (playable instanceof FeedMedia) { if (playable instanceof FeedMedia) {
long itemId = ((FeedMedia) playable).getItem().getId(); long itemId = ((FeedMedia) playable).getItem().getId();
DBWriter.addQueueItem(this, false, true, itemId); DBWriter.addQueueItem(this, false, true, itemId);
notifyChildrenChanged(getString(R.string.queue_label));
} }
} }