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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13974563

Change-Id: I2f6f6036ec77edb8b057ae5f397edcd5080e6b66
This commit is contained in:
Jonathan Miranda
2021-03-30 15:18:15 +00:00
committed by Automerger Merge Worker
@@ -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.