Notify Android Auto that the queue changed (#6373)
This commit is contained in:
parent
86c11584b5
commit
2c0b970044
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue