Hide locked message if queue is empty (#4408)
This commit is contained in:
parent
410dfabeb5
commit
b80978c40a
|
@ -384,12 +384,14 @@ public class QueueFragment extends Fragment {
|
|||
if (recyclerAdapter != null) {
|
||||
recyclerAdapter.updateDragDropEnabled();
|
||||
}
|
||||
if (queue.size() == 0) {
|
||||
if (locked) {
|
||||
((MainActivity) getActivity()).showSnackbarAbovePlayer(R.string.queue_locked, Snackbar.LENGTH_SHORT);
|
||||
} else {
|
||||
((MainActivity) getActivity()).showSnackbarAbovePlayer(R.string.queue_unlocked, Snackbar.LENGTH_SHORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called if the user clicks on a sort order menu item.
|
||||
|
|
Loading…
Reference in New Issue