-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
WrongFragmentContainerViolation with TransactionOverviewFragment #774
Comments
Thanks for your report. I saw this issue, but the problem there is that this fragment is part of So, I guess, till we migrate to some newer version of |
Thanks for the clarification. For now I'll disable the WrongFragmentContainer check when I need the Chucker functionality. Am I correct to assume that the issues you were experiencing with Viewpager2 are fixed in the 1.1.x series? (so we need to wait until ViewPager2 1.1.0 gets a final release) |
Note, it is mostly a speculation from my side that As long as I remember we had only one of issues with options menu flickering resolved back then. However, I used alpha builds at that time. Maybe something changed with beta version.
Looking at dates of releases of |
Hi. Yes, our focus has shifted to Jetpack Compose indeed. If you are planning to migrate to Compose, that is probably the best option for you. |
✍️ Describe the bug
When clicking on a transaction Chucker crashes with the following exception:
Fatal Exception: androidx.fragment.app.strictmode.WrongFragmentContainerViolation
Attempting to add fragment TransactionOverviewFragment{ff4002b} (ab14c612-b5e4-41c1-8a05-05a1816b3c62 id=0x7f0a037c) to container androidx.viewpager.widget.ViewPager{3b95f96 VFED..... ......I. 0,0-0,0 #7f0a037c app:id/viewPager} which is not a FragmentContainerView
I'm using AndroidX Fragment 1.4.1 and have enabled following strictmode checks:
FragmentStrictMode.defaultPolicy = FragmentStrictMode.Policy.Builder() .detectFragmentReuse() .detectFragmentTagUsage() .detectRetainInstanceUsage() .detectSetUserVisibleHint() .detectTargetFragmentUsage() .detectWrongFragmentContainer() .penaltyDeath() .build()
💣 Steps to reproduce
🔧 Expected behavior
Show the details of the transaction
📱 Tech info
📄 Additional context
Using app with Fragment 1.4.1
The text was updated successfully, but these errors were encountered: