From 424b8dee5ebebe0890f20f618f8ea1523b2af958 Mon Sep 17 00:00:00 2001 From: Sihua Ma Date: Fri, 8 Nov 2024 22:51:29 +0000 Subject: [PATCH] Resetting workspace alpha when the animation is cancelled Bug: 364465567 Test: Manual Flag: EXEMPT bug fix Change-Id: I0dcc62a10ca96670c5ed794001c58fd319e36854 --- .../com/android/quickstep/util/ScalingWorkspaceRevealAnim.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstep/src/com/android/quickstep/util/ScalingWorkspaceRevealAnim.kt b/quickstep/src/com/android/quickstep/util/ScalingWorkspaceRevealAnim.kt index db02f55c0a..f719bed5e7 100644 --- a/quickstep/src/com/android/quickstep/util/ScalingWorkspaceRevealAnim.kt +++ b/quickstep/src/com/android/quickstep/util/ScalingWorkspaceRevealAnim.kt @@ -217,6 +217,11 @@ class ScalingWorkspaceRevealAnim( animation.addListener( AnimatorListeners.forEndCallback( Runnable { + // The workspace might stay at a transparent state when the animation is + // cancelled, and the alpha will not be recovered (this doesn't apply to scales + // somehow). Resetting the alpha for the workspace here. + workspace.alpha = 1.0F + workspace.setLayerType(View.LAYER_TYPE_NONE, null) hotseat.setLayerType(View.LAYER_TYPE_NONE, null)