summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/ItemSortDialog.java2
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/ItemSortDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/ItemSortDialog.java
index 3090dd6a5..cd6cc4b0a 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/ItemSortDialog.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/ItemSortDialog.java
@@ -27,6 +27,8 @@ public class ItemSortDialog extends BottomSheetDialogFragment {
@Nullable Bundle savedInstanceState) {
viewBinding = SortDialogBinding.inflate(inflater);
populateList();
+ viewBinding.keepSortedCheckbox.setOnCheckedChangeListener(
+ (buttonView, isChecked) -> ItemSortDialog.this.onSelectionChanged());
return viewBinding.getRoot();
}
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 dbaeb836c..1e32ee465 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java
@@ -546,9 +546,11 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte
if (UserPreferences.isQueueKeepSorted()) {
sortOrder = UserPreferences.getQueueKeepSortedOrder();
}
- View view = super.onCreateView(inflater, container, savedInstanceState);
+ final View view = super.onCreateView(inflater, container, savedInstanceState);
viewBinding.keepSortedCheckbox.setVisibility(View.VISIBLE);
viewBinding.keepSortedCheckbox.setChecked(UserPreferences.isQueueKeepSorted());
+ // Disable until something gets selected
+ viewBinding.keepSortedCheckbox.setEnabled(UserPreferences.isQueueKeepSorted());
return view;
}