Merge "Task thumbnail background is spilling to the front, making the BK 1px smaller to fix it" into tm-dev am: 1c11c5319c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17060224

Change-Id: I23e77efff7fb9f6905b1dd13a808dc9e784c1a51
This commit is contained in:
Sebastián Franco
2022-03-24 18:35:22 +00:00
committed by Automerger Merge Worker
@@ -300,7 +300,8 @@ public class TaskThumbnailView extends View {
// Always draw the background since the snapshots might be translucent or partially empty
// (For example, tasks been reparented out of dismissing split root when drag-to-dismiss
// split screen).
canvas.drawRoundRect(x, y, width, height, cornerRadius, cornerRadius, mBackgroundPaint);
canvas.drawRoundRect(x, y + 1, width, height - 1, cornerRadius,
cornerRadius, mBackgroundPaint);
final boolean drawBackgroundOnly = mTask == null || mTask.isLocked || mBitmapShader == null
|| mThumbnailData == null;