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

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

Open
@CCCCauchy

Description

@CCCCauchy

1、复现过程:

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions