diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-23 16:00:06 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-04-24 15:12:11 +0300 |
commit | 729835de99acfc67d7837c64934f3ecde07a3076 (patch) | |
tree | 184d5adef6133219d1834d6ec5aadd76662a6677 /app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java | |
parent | 403c31533ca1f48287f96188c24783b0027e8d7c (diff) |
#396 Filter cards
Fix crash when changing theme
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java index c55c18cce..d5a3c5e6f 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java @@ -31,7 +31,7 @@ public class FilterDialogFragment extends BrandedDialogFragment { private DialogFilterBinding binding; private SyncManager syncManager; - private EDueTypeAdapter overdueAdapter; + private OverdueFilterAdapter overdueAdapter; private Account account; private long boardId; @@ -73,7 +73,7 @@ public class FilterDialogFragment extends BrandedDialogFragment { final AlertDialog.Builder dialogBuilder = new BrandedAlertDialogBuilder(requireContext()); binding = DialogFilterBinding.inflate(requireActivity().getLayoutInflater()); - overdueAdapter = new EDueTypeAdapter(requireContext()); + overdueAdapter = new OverdueFilterAdapter(requireContext()); binding.overdue.setAdapter(overdueAdapter); binding.overdue.setSelection(overdueAdapter.getPosition(this.filterInformation.getDueType())); binding.overdue.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @@ -90,6 +90,7 @@ public class FilterDialogFragment extends BrandedDialogFragment { syncManager = new SyncManager(requireActivity()); return dialogBuilder + .setTitle(R.string.simple_filter) .setView(binding.getRoot()) .setNegativeButton(android.R.string.cancel, null) .setPositiveButton(R.string.simple_filter, (a, b) -> viewModel.postFilterInformation(filterInformation)) |