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

关于调用setData的不同重载方法造成的无限轮播问题 #247

Open
Yis92 opened this issue Apr 10, 2020 · 0 comments
Open

关于调用setData的不同重载方法造成的无限轮播问题 #247

Yis92 opened this issue Apr 10, 2020 · 0 comments

Comments

@Yis92
Copy link

Yis92 commented Apr 10, 2020

有看过这个问题,「为什么必须大于2条数据 才可以自动轮播 #130」,但场景不同

问题同样是:2条数据不能自动轮播

当我调用 setData(List views, List<? extends Object> models, List tips) 该方法进行设置数据时,

if (mAutoPlayAble && views.size() < 3 && mHackyViews == null) {
mAutoPlayAble = false;
}

该判断中的第三个条件就会一值为null,导致mAutoPlayAble会被设置为false

动态的为 mHackyViews添加 view 又会出现ViewPager滑动空白的问题

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