diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-03 10:56:25 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-03 10:56:25 +0300 |
commit | 2771420512a3788ef81ac61ceeb2e11aacc474d1 (patch) | |
tree | 0a1f6d0f0f4c5296e66a8a62ead15035e9e1363e /app/src/main/java/it/niedermann/nextcloud/deck/ui/filter/FilterDialogFragment.java | |
parent | b784be03e6f63e9089ee0ac07179bb7f15ffc2a3 (diff) |
Add offscreen limit and background colors for debugging purposes
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 | 1 |
1 files changed, 1 insertions, 0 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 7388b0bbe..113449c93 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 @@ -43,6 +43,7 @@ public class FilterDialogFragment extends BrandedDialogFragment { binding = DialogFilterBinding.inflate(requireActivity().getLayoutInflater()); binding.viewPager.setAdapter(new TabsPagerAdapter(getChildFragmentManager(), getLifecycle())); + binding.viewPager.setOffscreenPageLimit(tabTitles.length); new TabLayoutMediator(binding.tabLayout, binding.viewPager, (tab, position) -> tab.setText(tabTitles[position])).attach(); return dialogBuilder |