Lawnchair: Fix reload of AllApps columns
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user