Merge pull request #772 from TomHennen/fix_removed_episode_toast

Fixes bug with undo toast.
This commit is contained in:
Tom Hennen 2015-04-26 17:14:11 -04:00
commit b5b725a055
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import java.util.List;
public class QueueEvent {
public enum Action {
ADDED, ADDED_ITEMS, REMOVED, CLEARED, DELETED_MEDIA, SORTED
ADDED, ADDED_ITEMS, REMOVED, CLEARED, DELETED_MEDIA, SORTED, MOVED
}
public final Action action;

View File

@ -608,8 +608,7 @@ public class DBWriter {
adapter.setQueue(queue);
if (broadcastUpdate) {
EventBus.getDefault().post(new QueueEvent(QueueEvent.Action.REMOVED, item));
EventBus.getDefault().post(new QueueEvent(QueueEvent.Action.ADDED, item, to));
EventBus.getDefault().post(new QueueEvent(QueueEvent.Action.MOVED, item, to));
}
}