update launcher/launcher/src/main/cpp/swipe_view.cpp.

初始化arrPage_[3]参数

Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
tongkai0808fh
2024-05-06 06:35:34 +00:00
committed by Gitee
parent fa879cc0a3
commit eaae978d9b
@@ -130,7 +130,7 @@ void SwipeView::OnSetUpView()
swipe_->SetCurrentPage(0);
}
void SwipeView::BundleInfoScan(BundleInfo* pBundleInfos, int cnt, int gCount, ViewGroupPage* arrPage_[MAX_VIEWGROUP])
void SwipeView::BundleInfoScan(BundleInfo* pBundleInfos, int cnt, int gCount, ViewGroupPage* arrPage_[3])
{
for (int j = 0; j < cnt; j++) {
for (int i = 0; i < gCount; i++) {