From 78170821b66343fc5ee9010daf8dd4c0f955e955 Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Fri, 21 Apr 2023 04:30:42 +0000 Subject: [PATCH] Fix bottom split disappeared after unlock Make sure to offset tasks properly in y axis when performing unlock animation. Bug: 278282153 Test: manual Change-Id: I11f421db3c3a8be0d525b5005fb7d0cb36f63c62 --- .../systemui/keyguard/KeyguardUnlockAnimationController.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt index 2d1b7ae610c09..2925d8dbd03a1 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt @@ -792,7 +792,8 @@ class KeyguardUnlockAnimationController @Inject constructor( // Translate up from the bottom. surfaceBehindMatrix.setTranslate( surfaceBehindRemoteAnimationTarget.localBounds.left.toFloat(), - surfaceHeight * SURFACE_BEHIND_START_TRANSLATION_Y * (1f - amount) + surfaceBehindRemoteAnimationTarget.localBounds.top.toFloat() + + surfaceHeight * SURFACE_BEHIND_START_TRANSLATION_Y * (1f - amount) ) // Scale up from a point at the center-bottom of the surface.