summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsContainerView.java
diff options
context:
space:
mode:
authorPeter Schiller <peterschiller@google.com>2016-06-27 16:15:30 -0700
committerPeter Schiller <peterschiller@google.com>2016-06-27 18:59:32 -0700
commitcbea0862846a9f5d999111e66c162e2349b6be26 (patch)
treee19a023b9fe43618b9d2b9cdc01b27d9ed2af71e /src/com/android/launcher3/allapps/AllAppsContainerView.java
parent1b65c6e97cfc859093a81dd0a84fa69c86aa56a3 (diff)
downloadandroid_packages_apps_Trebuchet-cbea0862846a9f5d999111e66c162e2349b6be26.tar.gz
android_packages_apps_Trebuchet-cbea0862846a9f5d999111e66c162e2349b6be26.tar.bz2
android_packages_apps_Trebuchet-cbea0862846a9f5d999111e66c162e2349b6be26.zip
All Apps header shadow is drawn incorrectly
Bug: 29777304 Change-Id: I9ead05b28d1d57dd6a157126637296a97e3f7058
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsContainerView.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index d1da6d9c0..937485f7a 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -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()) {