diff options
| author | 2024-08-22 15:02:56 +0000 | |
|---|---|---|
| committer | 2024-08-27 00:26:31 +0000 | |
| commit | 20e003f6cb63ca2af6f2d82382f9b8963a5ecc11 (patch) | |
| tree | c261a4fafa0c5c981ebcd21c4623fb1e657ca1cb | |
| parent | f7bd08de6a121204208a6751761ae48432c7fde6 (diff) | |
Fix HUN not showing after unlocking with unlock button
We have a race condition between LockscreenToGoneTransitionViewModel.notificationAlpha and isTransitioningToHiddenKeyguard, which leads to NSSL being left
transparent when unlocking too fast (approximately 200ms, longer
than unlocking by long-pressing the unlock button).
This is the first phase of fix: decreasing the duration of
LockscreenToGoneTransitionViewModel from 200ms to 100ms, making
it shorter than unlocking by long-pressing the unlock button.
The next phase should find a way to prevent this race condition.
Change-Id: I05cff92a3715e3be75b19b5741b301a112a54490
Test: LockscreenToGoneTransitionViewModelTest
Flag: EXEMPT bugfix
Fix: 357316448
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToGoneTransitionViewModel.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToGoneTransitionViewModel.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToGoneTransitionViewModel.kt index 1314e8863c71..6adf3e9894bd 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToGoneTransitionViewModel.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToGoneTransitionViewModel.kt @@ -67,7 +67,7 @@ constructor( var leaveShadeOpen = false return transitionAnimation.sharedFlow( - duration = 200.milliseconds, + duration = 80.milliseconds, onStart = { leaveShadeOpen = statusBarStateController.leaveOpenOnKeyguardHide() startAlpha = viewState.alpha() |