All Apps header shadow is drawn incorrectly

Bug: 29777304
Change-Id: I9ead05b28d1d57dd6a157126637296a97e3f7058
This commit is contained in:
Peter Schiller committed 2016-06-27 18:59:32 -07:00
1 parent 1b65c6e97c
commit cbea086284
2 files changed
+34 -3

No files matched your search

@@ -459,6 +459,16 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
lp.leftMargin = bgPadding.left;
lp.rightMargin = bgPadding.right;
// Clip the view to the left and right edge of the background to
// to prevent shadows from rendering beyond the edges
final Rect newClipBounds = new Rect(
bgPadding.left,
0,
getWidth() - bgPadding.right,
getHeight()
);
setClipBounds(newClipBounds);
DeviceProfile grid = mLauncher.getDeviceProfile();
if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) {
if (!grid.isVerticalBarLayout()) {