Hide locked message if queue is empty (#4408)

This commit is contained in:
asdoi 2020-09-08 15:02:56 +00:00 committed by GitHub
parent 410dfabeb5
commit b80978c40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -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.