mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Merge "Always draw background for task thumbnail" into sc-v2-dev am: 5b2bbe7e20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16422016 Change-Id: I91c97afe091957faa38b3a0bb237a0bdc2be6c5f
This commit is contained in:
@@ -307,14 +307,15 @@ public class TaskThumbnailView extends View {
|
||||
}
|
||||
}
|
||||
|
||||
// Draw the background in all cases, except when the thumbnail data is opaque
|
||||
// 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);
|
||||
|
||||
final boolean drawBackgroundOnly = mTask == null || mTask.isLocked || mBitmapShader == null
|
||||
|| mThumbnailData == null;
|
||||
if (drawBackgroundOnly || mThumbnailData.isTranslucent) {
|
||||
canvas.drawRoundRect(x, y, width, height, cornerRadius, cornerRadius, mBackgroundPaint);
|
||||
if (drawBackgroundOnly) {
|
||||
return;
|
||||
}
|
||||
if (drawBackgroundOnly) {
|
||||
return;
|
||||
}
|
||||
|
||||
canvas.drawRoundRect(x, y, width, height, cornerRadius, cornerRadius, mPaint);
|
||||
|
||||
Reference in New Issue
Block a user