diff --git a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java index fbae1c4cf0..79f0d56573 100644 --- a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java +++ b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java @@ -264,9 +264,9 @@ public abstract class BaseAllAppsAdapter ex case VIEW_TYPE_FOLDER: // LC-Feature: Folder support in All Apps FrameLayout fl = new FrameLayout(mActivityContext); - ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams( - ViewGroup.LayoutParams.MATCH_PARENT, - ViewGroup.LayoutParams.WRAP_CONTENT); + fl.setLayoutParams(new RecyclerView.LayoutParams( + ViewGroup.LayoutParams.MATCH_PARENT, + mActivityContext.getDeviceProfile().getAllAppsProfile().getCellHeightPx())); return new ViewHolder(fl); default: if (mAdapterProvider.isViewSupported(viewType)) {