diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index c989e7bf64..e36afb6cff 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -175,6 +175,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo public void onDeviceProfileChanged(DeviceProfile dp) { for (AdapterHolder holder : mAH) { if (holder.recyclerView != null) { + holder.adapter.setAllAppsColumns(); // Remove all views and clear the pool, while keeping the data same. After this // call, all the viewHolders will be recreated. holder.recyclerView.swapAdapter(holder.recyclerView.getAdapter(), true); diff --git a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java index 8ec4d273f8..16cc74b27a 100644 --- a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java +++ b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java @@ -201,7 +201,17 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter