diff --git a/src/com/android/launcher3/allapps/PrivateAppsSectionDecorator.java b/src/com/android/launcher3/allapps/PrivateAppsSectionDecorator.java index 8712b8468f..18175b6add 100644 --- a/src/com/android/launcher3/allapps/PrivateAppsSectionDecorator.java +++ b/src/com/android/launcher3/allapps/PrivateAppsSectionDecorator.java @@ -56,7 +56,7 @@ public class PrivateAppsSectionDecorator extends RecyclerView.ItemDecoration { new SectionDecorationHandler.UnionDecorationHandler( decorationHandler, parent.getPaddingLeft(), parent.getPaddingRight())); - unionHandler.addChild(decorationHandler, view, true /* applyBackground */); + unionHandler.addChild(decorationHandler, view); deferredDecorations.put(PRIVATE_APP_SECTION, unionHandler); } else { decorationHandler.onFocusDraw(c, view); diff --git a/src/com/android/launcher3/allapps/SectionDecorationHandler.java b/src/com/android/launcher3/allapps/SectionDecorationHandler.java index f79b82cebb..ac9b146f12 100644 --- a/src/com/android/launcher3/allapps/SectionDecorationHandler.java +++ b/src/com/android/launcher3/allapps/SectionDecorationHandler.java @@ -176,13 +176,10 @@ public class SectionDecorationHandler { /** * Expands decoration bounds to include child {@link PrivateAppsSectionDecorator} */ - public void addChild(SectionDecorationHandler child, View view, boolean applyBackground) { + public void addChild(SectionDecorationHandler child, View view) { int scaledHeight = (int) (view.getHeight() * view.getScaleY()); mBounds.union(view.getLeft(), view.getY(), view.getRight(), view.getY() + scaledHeight); - if (applyBackground) { - applyBackground(view, mContext, null, false); - } mIsBottomRound |= child.mIsBottomRound; mIsBottomLeftRound |= child.mIsBottomLeftRound; mIsBottomRightRound |= child.mIsBottomRightRound;