From 8ea6a53654ebb13f97950724abe4cd6f339916f5 Mon Sep 17 00:00:00 2001 From: Peter Schiller Date: Mon, 27 Jun 2016 16:36:33 -0700 Subject: [PATCH] Fixed inset overscroll Bug: 29334391 Change-Id: I621f4b78e2c7d80d024ba1f9bcd993ff8a35ed01 --- src/com/android/launcher3/allapps/AllAppsContainerView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 937485f7a..e67c9df04 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -459,6 +459,7 @@ 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( @@ -469,6 +470,9 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc ); setClipBounds(newClipBounds); + // Allow the overscroll effect to reach the edges of the view + mAppsRecyclerView.setClipToPadding(false); + DeviceProfile grid = mLauncher.getDeviceProfile(); if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) { if (!grid.isVerticalBarLayout()) { -- 2.11.0