Merge "Fix bug where all apps rv preinfaltion is not enabled when work profile is disabled" into udc-qpr-dev

This commit is contained in:
Fengjiang Li
2023-07-19 20:03:48 +00:00
committed by Android (Google) Code Review

View File

@@ -588,6 +588,10 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
} else {
mAH.get(AdapterHolder.MAIN).setup(findViewById(R.id.apps_list_view), null);
mAH.get(AdapterHolder.WORK).mRecyclerView = null;
if (ENABLE_ALL_APPS_RV_PREINFLATION.get()) {
mAH.get(AdapterHolder.MAIN).mRecyclerView
.setRecycledViewPool(mAllAppsStore.getRecyclerViewPool());
}
}
setupHeader();