From 5364b0dac93fe0cc4de16b76442262d5eb9b9647 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 30 May 2023 18:00:30 -0700 Subject: [PATCH] Skip drawing taskbar background in setup Test: Manually went into SUW and observed Fixes: 272674390 Change-Id: I102d1433692793f51d930e710d68134d4536c397 --- .../com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt index fe365f73b2..ca2d1f82cd 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt @@ -34,6 +34,7 @@ import com.android.launcher3.util.DisplayController /** Helps draw the taskbar background, made up of a rectangle plus two inverted rounded corners. */ class TaskbarBackgroundRenderer(context: TaskbarActivityContext) { + private val isInSetup: Boolean = !context.isUserSetupComplete private val DARK_THEME_SHADOW_ALPHA = 51f private val LIGHT_THEME_SHADOW_ALPHA = 25f @@ -137,7 +138,7 @@ class TaskbarBackgroundRenderer(context: TaskbarActivityContext) { canvas.translate(0f, leftCornerRadius) canvas.translate(canvas.width - rightCornerRadius, -rightCornerRadius) canvas.drawPath(invertedRightCornerPath, paint) - } else { + } else if (!isInSetup) { // backgroundHeight is a value from [0...maxBackgroundHeight], so we can use it as a // proxy to figure out the animation progress of the stash/unstash animation. val progress = backgroundHeight / maxBackgroundHeight