Lawnchair: Fix reload of AllApps columns

This commit is contained in:
Kshitij Gupta committed 2021-03-15 17:59:26 +05:30
1 parent b9ea94378e
commit fd4d9b3edf
3 files changed
+13 -1

No files matched your search

@@ -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);