Merge pull request #5277 from jhenninger/fix-emtpy-queue-swipe-refresh
Fix swipe refresh not working on empty queue
This commit is contained in:
commit
716b0886fb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue