Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Add support for ViewPagers inside Fragments #3001

Merged
merged 2 commits into from
Jul 9, 2018

Conversation

nmilcoff
Copy link
Contributor

@nmilcoff nmilcoff commented Jul 9, 2018

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix / Feature which wasn't supported until now

⤵️ What is the current behavior?

When the app has a ViewPager inside a Fragment, and you try to display a tab inside of it using the NavigationService, the app will do weird things. Probably just crash.
Also when navigating forwards to nested fragments, those fragments are not stored in the correct FragmentManager, therefore they are not properly disposed afterwards.

🆕 What is the new behavior (if this is a feature change)?

Above is supported. Also The issue #2550 is addressed by this PR.

💥 Does this PR introduce a breaking change?

Nope

🐛 Recommendations for testing

Run Playground.Droid -> Navigate to Master/Details screen -> Tap on "Show tabs" button. Check everything works

📝 Links to relevant issues/docs

Fixes #2550.
This is also somehow related to #2440

🤔 Checklist before submitting

@nmilcoff nmilcoff added t/bug Bug type p/android-support Android Support Packages platform labels Jul 9, 2018
@martijn00 martijn00 added this to the 6.2.0 milestone Jul 9, 2018
@martijn00 martijn00 merged commit 12ddc10 into MvvmCross:develop Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p/android-support Android Support Packages platform t/bug Bug type
Development

Successfully merging this pull request may close these issues.

TabLayout inside a nested layout adds the tabs' fragments to the host FragmentManager
2 participants