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) {
|
||||
SortOrder sortOrder = UserPreferences.getQueueKeepSortedOrder();
|
||||
QueueSorter.sort(sortOrder, true);
|
||||
recyclerAdapter.setLocked(true);
|
||||
} else {
|
||||
if (recyclerAdapter != null) {
|
||||
recyclerAdapter.setLocked(true);
|
||||
}
|
||||
} else if (recyclerAdapter != null) {
|
||||
recyclerAdapter.setLocked(UserPreferences.isQueueLocked());
|
||||
}
|
||||
getActivity().invalidateOptionsMenu();
|
||||
|
|
Loading…
Reference in New Issue