diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-04 23:38:10 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-04 23:38:10 +0300 |
commit | b5978199e6cfda0986d7b11d97ed0e5f05e498f5 (patch) | |
tree | 955873becb894c4285dab933da11400c17b4418d /app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java | |
parent | a364c0ce949cc27715edda6b3760c9649b8bda71 (diff) |
Wire filterInformation and filterInformationDraft
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 | 6 |
1 files changed, 4 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 113449c93..326f914a1 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 @@ -46,12 +46,14 @@ public class FilterDialogFragment extends BrandedDialogFragment { binding.viewPager.setOffscreenPageLimit(tabTitles.length); new TabLayoutMediator(binding.tabLayout, binding.viewPager, (tab, position) -> tab.setText(tabTitles[position])).attach(); + mainViewModel.createFilterInformationDraft(); + return dialogBuilder .setTitle(R.string.simple_filter) .setView(binding.getRoot()) .setNeutralButton(android.R.string.cancel, null) - .setNegativeButton(R.string.simple_clear, (a, b) -> mainViewModel.postFilterInformation(null)) - .setPositiveButton(R.string.simple_filter, null) + .setNegativeButton(R.string.simple_clear, (a, b) -> mainViewModel.clearFilterInformation()) + .setPositiveButton(R.string.simple_filter, (a, b) -> mainViewModel.publishFilterInformationDraft()) .create(); } |