Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

多个BannerCard复用,导致BannerIndicator刷新时数组越界问题 #195

Open
CCCCauchy opened this issue Jul 27, 2020 · 0 comments
Open

Comments

@CCCCauchy
Copy link

1、复现过程:

  • 两个BannerCard的page的size不相同
  • 两个BannerCard不在一屏内

当由size小的滑动到size较大的BannerCard后,BannerIndicator中的mImageViews会数组越界,导致崩溃

2、导致原因:
BannerViewonPageSelected回调会在updateIndicators之前执行,导致mImageViews数组仍未更新为当前view的大小,就要处理滑动同步

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

No branches or pull requests

1 participant