commit | 88b1d61a490b18b76a569024d71f8ad56e38798d | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Tue Jul 13 19:15:09 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 13 19:15:09 2021 +0000 |
tree | 0cd3a7baaca3d8182584785cb51ecb0a242f3bd9 | |
parent | 352eefaf78d384b4b7d3920c2e2b73fa39e70872 [diff] | |
parent | 3d6d2e38b087c92af01cbc54c20cfe26d9bd7a48 [diff] |
Merge "Fix hole in recycler view" into sc-dev am: 3d6d2e38b0 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15270060 Change-Id: I4a08da27df6d0f32a8a6e2949180c4eefc95542f
diff --git a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java index 9a5f3f2..2c84a3d 100644 --- a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java +++ b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
@@ -109,7 +109,8 @@ pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_EMPTY_SEARCH, 1); pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_ALL_APPS_DIVIDER, 1); pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_SEARCH_MARKET, 1); - pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_ICON, approxRows * mNumAppsPerRow); + pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_ICON, approxRows + * (mNumAppsPerRow + 1)); mViewHeights.clear(); mViewHeights.put(AllAppsGridAdapter.VIEW_TYPE_ICON, grid.allAppsCellHeightPx);