Merge pull request #6159 from ByteHamster/fix-queue-sort

Fix queue sort order not being displayed
This commit is contained in:
ByteHamster 2022-10-23 21:50:25 +02:00 committed by GitHub
commit 892b499687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte
case SET_QUEUE:
case SORTED: //Deliberate fall-through
queue = event.items;
recyclerAdapter.notifyDataSetChanged();
recyclerAdapter.updateItems(event.items);
break;
case REMOVED:
case IRREVERSIBLE_REMOVED:
@ -154,7 +154,7 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte
break;
case CLEARED:
queue.clear();
recyclerAdapter.notifyDataSetChanged();
recyclerAdapter.updateItems(queue);
break;
case MOVED:
return;