Merge "Update All Apps apps per row when DeviceProfile changes." into sc-dev

This commit is contained in:
Jonathan Miranda
2021-03-30 14:52:44 +00:00
committed by Android (Google) Code Review
@@ -180,6 +180,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
@Override
public void onDeviceProfileChanged(DeviceProfile dp) {
for (AdapterHolder holder : mAH) {
holder.adapter.setAppsPerRow(dp.inv.numAllAppsColumns);
if (holder.recyclerView != null) {
// Remove all views and clear the pool, while keeping the data same. After this
// call, all the viewHolders will be recreated.