summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/folder
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-07-04 12:07:46 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-07-04 14:23:41 -0700
commit5247f5b05ad0708a059530be07841e17f110cc1c (patch)
tree3a5cba6dcc2f5ab73cd141395cdd66122f59a6b6 /src/com/android/launcher3/folder
parentefbfcb838d5ff45d086736041ab82f1ab4ea6c63 (diff)
downloadandroid_packages_apps_Trebuchet-5247f5b05ad0708a059530be07841e17f110cc1c.tar.gz
android_packages_apps_Trebuchet-5247f5b05ad0708a059530be07841e17f110cc1c.tar.bz2
android_packages_apps_Trebuchet-5247f5b05ad0708a059530be07841e17f110cc1c.zip
Fixing preview for newly created folder not getting clipped properly.
When a new folder was created, isClipping was set to false so that the stroke is drawn behind the previewItems, but it was never reset to true. Bug: 37654209 Change-Id: I03e94008dd19d8c5a0acb61207ebac33860fdf1d
Diffstat (limited to 'src/com/android/launcher3/folder')
-rw-r--r--src/com/android/launcher3/folder/PreviewBackground.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/folder/PreviewBackground.java b/src/com/android/launcher3/folder/PreviewBackground.java
index eb6a6d5d8..61490eee8 100644
--- a/src/com/android/launcher3/folder/PreviewBackground.java
+++ b/src/com/android/launcher3/folder/PreviewBackground.java
@@ -306,6 +306,7 @@ public class PreviewBackground {
// It is the callers responsibility to save and restore the canvas layers.
void clipCanvasHardware(Canvas canvas) {
mPaint.setColor(Color.BLACK);
+ mPaint.setStyle(Paint.Style.FILL);
mPaint.setXfermode(mClipPorterDuffXfermode);
float radius = getScaledRadius();
@@ -336,6 +337,7 @@ public class PreviewBackground {
}
mDrawingDelegate = null;
+ isClipping = true;
invalidate();
}