We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我继承了SupportFragment,在onActivityCreated初始化了一些东西,onSupportVisible内调用初始化的变量方法发生crash。看了下是onSupportVisible先于onActivityCreated执行了。
The text was updated successfully, but these errors were encountered:
找到原因了,如果子类要继承onActivityCreated,必须在方法最后调用super.onActivityCreated(savedInstanceState);父类方法会执行回调onSupportVisible
Sorry, something went wrong.
@bangelua 嗯,onSupportVisible()目前一些情况会在onActivityCreated()调用,但是确定会在onCreateView()之后调用, 这个后面再优化,保证统一性
onSupportVisible()
onActivityCreated()
onCreateView()
Optimize the callback timing of onSupportVisible(). #475, #478
38f80c6
v1.1.1已放出,调用顺序规范:onActivityCreated() -> onResume() -> onSupportVisible -> onLazyInitView() => onSupportInvisible() -> onPause()
No branches or pull requests
我继承了SupportFragment,在onActivityCreated初始化了一些东西,onSupportVisible内调用初始化的变量方法发生crash。看了下是onSupportVisible先于onActivityCreated执行了。
The text was updated successfully, but these errors were encountered: