Merge pull request #5277 from jhenninger/fix-emtpy-queue-swipe-refresh

Fix swipe refresh not working on empty queue
This commit is contained in:
ByteHamster 2021-07-17 15:06:57 +02:00 committed by GitHub
commit 716b0886fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ public class QueueFragment extends Fragment implements Toolbar.OnMenuItemClickLi
} }
private void onFragmentLoaded(final boolean restoreScrollPosition) { private void onFragmentLoaded(final boolean restoreScrollPosition) {
if (queue != null && queue.size() > 0) { if (queue != null) {
if (recyclerAdapter == null) { if (recyclerAdapter == null) {
MainActivity activity = (MainActivity) getActivity(); MainActivity activity = (MainActivity) getActivity();
recyclerAdapter = new QueueRecyclerAdapter(activity, swipeActions); recyclerAdapter = new QueueRecyclerAdapter(activity, swipeActions);