Fixed crash when clicking keep sorted on empty queue
This commit is contained in:
parent
6dfff544e4
commit
6b79f740b2
|
@ -378,8 +378,10 @@ public class QueueFragment extends Fragment {
|
||||||
if (keepSortedNew) {
|
if (keepSortedNew) {
|
||||||
SortOrder sortOrder = UserPreferences.getQueueKeepSortedOrder();
|
SortOrder sortOrder = UserPreferences.getQueueKeepSortedOrder();
|
||||||
QueueSorter.sort(sortOrder, true);
|
QueueSorter.sort(sortOrder, true);
|
||||||
recyclerAdapter.setLocked(true);
|
if (recyclerAdapter != null) {
|
||||||
} else {
|
recyclerAdapter.setLocked(true);
|
||||||
|
}
|
||||||
|
} else if (recyclerAdapter != null) {
|
||||||
recyclerAdapter.setLocked(UserPreferences.isQueueLocked());
|
recyclerAdapter.setLocked(UserPreferences.isQueueLocked());
|
||||||
}
|
}
|
||||||
getActivity().invalidateOptionsMenu();
|
getActivity().invalidateOptionsMenu();
|
||||||
|
|
Loading…
Reference in New Issue