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: I4a0a68579a375d9095e1e2032f07da8b27e0ace6
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index bf0a88f..5a259a9 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -180,6 +180,7 @@
     @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.