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

setOnPageClickListener如果在create调用之后,则点击事件无效 #270

Closed
guozhiqiang123 opened this issue Jul 8, 2022 · 0 comments
Labels

Comments

@guozhiqiang123
Copy link

如题。我先调用create方法,则会调用内部setupViewPager,setupViewPager内会设置setPageClickListener,但是这个时候匿名回调函数还是null。而后面再调用setOnPageClickListener,又未重新将匿名回调赋值到BaseBannerAdapter的mPageClickListener上,所以点击无效。
请在框架内部规避这种因为调用顺序可能导致的bug。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants