解决launcher/launcher/src/main/cpp/swipe_view.cpp文件中BundleInfoScan函数无法调用

解决SwipeView类无法调用BundleInfoScan函数

Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
tongkai0808fh
2024-05-06 03:26:37 +00:00
committed by Gitee
parent 5e88de27cb
commit bd004813e2
@@ -119,12 +119,12 @@ void SwipeView::OnSetUpView()
BundleInfo* pBundleInfos = nullptr;
int count = 0;
if (appManage_->LauncherApp(&pBundleInfos, count)) {
BundleInfoScan(pBundleInfos, count, groupCount_);
BundleInfoScan(pBundleInfos, count, groupCount_, arrPage_[MAX_VIEWGROUP]);
}
swipe_->SetCurrentPage(0);
}
void BundleInfoScan(BundleInfo* pBundleInfos, int count, int groupCount, ViewGroupPage* arrPage_[MAX_VIEWGROUP])
void SwipeView::BundleInfoScan(BundleInfo* pBundleInfos, int count, int groupCount, ViewGroupPage* arrPage_[MAX_VIEWGROUP])
{
arrPage_[0]->SetMatrix(APP_ROW_COUNT, APP_COL_COUNT);
arrPage_[0]->SetScale(0.6);