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

为什么在Handler.post里调用onSupportVisible, 而不是直接调用? #1264

Closed
shiqos opened this issue Mar 22, 2021 · 1 comment
Closed

Comments

@shiqos
Copy link

shiqos commented Mar 22, 2021

为什么在Handler.post里调用onSupportVisible, 而不是直接调用?

发现在onHiddenChanged(false) 和 setUserVisibleHint(true)里会Post到MessageQueue里, 异步调用onSupportVisible

请问为什么不能直接调用呢, 直接调用会有什么问题么?

@shiqos
Copy link
Author

shiqos commented Apr 1, 2021

通过这些patch
38f80c6
6191af5
以及#475
可知使用post方式回调onSupportVisible为了解决 方法回调时序的问题
不能改成直接调用

该issue关闭

@shiqos shiqos closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant