From d406d3537d556c6abc3b4171a97fed0f8f872014 Mon Sep 17 00:00:00 2001 From: Johannes Henninger Date: Fri, 9 Apr 2021 15:47:15 +0200 Subject: [PATCH] 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. --- .../main/java/de/danoeh/antennapod/fragment/QueueFragment.java | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java index b92043c7d..f1e6b7ae5 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java @@ -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);