Merge "Fixing preview for newly created folder not getting clipped properly." into ub-launcher3-dorval-polish

This commit is contained in:
TreeHugger Robot 2017-07-05 20:16:22 +00:00 committed by Android (Google) Code Review
commit 2d8f6f0050
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}