Merge pull request #772 from TomHennen/fix_removed_episode_toast
Fixes bug with undo toast.
This commit is contained in:
commit
b5b725a055
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue