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

loadRoot时,在factory中给Fragment传入的argument参数无效 #11

Closed
vitaviva opened this issue Jan 31, 2021 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@vitaviva
Copy link
Owner

Hello,用最新的库试了下,发现这里factory给Fragment传入的argument参数会在ReportFragment里onAttach的时候被覆盖成这个bundle
Bundle[{real=com.github.fragivity.example.HomeFragment}]
相关代码:
`

override fun onAttach(context: Context) {

    super.onAttach(context)

    mChildFragmentManager.beginTransaction().apply {

        _realFragment.arguments = arguments

        add(R.id.container, _realFragment)

`

Originally posted by @caojing35 in #6 (comment)

@vitaviva vitaviva added the bug Something isn't working label Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant