we do need to tag the item in addQueueItemAt

This commit is contained in:
Tom Hennen 2015-09-20 16:33:57 -04:00
parent 721bfc064a
commit 3638eed220
1 changed files with 1 additions and 2 deletions

View File

@ -318,8 +318,7 @@ public class DBWriter {
if (item != null) { if (item != null) {
queue.add(index, item); queue.add(index, item);
adapter.setQueue(queue); adapter.setQueue(queue);
// no need to tag the item here, since we got it right out of the database item.addTag(FeedItem.TAG_QUEUE);
// and no one is ever going to see it...
EventBus.getDefault().post(new QueueEvent(QueueEvent.Action.ADDED, item, index)); EventBus.getDefault().post(new QueueEvent(QueueEvent.Action.ADDED, item, index));
if (item.isNew()) { if (item.isNew()) {
DBWriter.markItemPlayed(FeedItem.UNPLAYED, item.getId()); DBWriter.markItemPlayed(FeedItem.UNPLAYED, item.getId());