Show queue lock button even if "keep sorted" is active

The lock button controls whether tracks in the queue can be reordered
and swiped. Since swipe works regardless of the "keep sorted" setting,
the button to disable swipe should always be available.
This commit is contained in:
Johannes Henninger 2021-04-09 15:47:15 +02:00
parent b8276d2fb3
commit d406d3537d
1 changed files with 0 additions and 1 deletions

View File

@ -242,7 +242,6 @@ public class QueueFragment extends Fragment implements Toolbar.OnMenuItemClickLi
private void refreshToolbarState() {
MenuItemUtils.refreshLockItem(getActivity(), toolbar.getMenu());
boolean keepSorted = UserPreferences.isQueueKeepSorted();
toolbar.getMenu().findItem(R.id.queue_lock).setVisible(!keepSorted);
toolbar.getMenu().findItem(R.id.queue_sort_random).setVisible(!keepSorted);
toolbar.getMenu().findItem(R.id.queue_keep_sorted).setChecked(keepSorted);