From 57dbe94cbda6a89f65c32b03d58ccc7d3d6647b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6llner?= Date: Thu, 24 Mar 2022 11:50:38 +0000 Subject: [PATCH] [Motion] Split-shade transition on LS: cross-fade status bars Before, both the keyguard status bar and the split shade header were showing at the same time during the shade expansion. With this change, we make sure the keyguard status bar is faded out before the split shade header fades in. Fixes: 226548318 Test: Unit tests + Manually Change-Id: I5757e7d6c065ee156030e434c19a965f8e1ef2f3 --- .../LockscreenShadeTransitionController.kt | 3 +++ .../KeyguardStatusBarViewController.java | 27 ++++++++++++++++--- .../NotificationPanelViewController.java | 9 +++++++ ...LockscreenShadeTransitionControllerTest.kt | 22 +++++++++++++++ .../KeyguardStatusBarViewControllerTest.java | 22 +++++++++++++++ .../NotificationPanelViewControllerTest.java | 9 +++++++ 6 files changed, 89 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/LockscreenShadeTransitionController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/LockscreenShadeTransitionController.kt index 8f78feb979b89..3620e84de3980 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/LockscreenShadeTransitionController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/LockscreenShadeTransitionController.kt @@ -494,6 +494,9 @@ class LockscreenShadeTransitionController @Inject constructor( } notificationPanelController .setKeyguardTransitionProgress(keyguardAlpha, keyguardTranslationY) + + val statusBarAlpha = if (useSplitShade) keyguardAlpha else -1f + notificationPanelController.setKeyguardStatusBarAlpha(statusBarAlpha) } private fun setDragDownAmountAnimated( diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java index a70ba8236e9a6..57d63487cf7a0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java @@ -229,6 +229,11 @@ public class KeyguardStatusBarViewController extends ViewController