Merge "Update All Apps apps per row when DeviceProfile changes." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
efeb27ce9c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user