diff options
| author | 2024-04-16 22:10:30 +0000 | |
|---|---|---|
| committer | 2024-04-17 05:02:44 +0000 | |
| commit | fda490111363ab5e1acba5086ab83ab0f86f0f45 (patch) | |
| tree | 30d8883b40fb6d5f09829a1b837670ebf0e1cf57 /libs/input/SpriteController.cpp | |
| parent | e6e2ada8f73ca3a8ce64c8f06544014649e58c31 (diff) | |
Fix smallClock and smartspace jumping when transitioning from AOD to Lockscreen
When transitioning from AOD to Lockscreen, translationY is calculated
from `aodToLockscreenTransitionViewModel`, and we need to provide
currentTranslationY function, which is wired from BurnInParameters.
Otherwise, translationY is always 0.
Test: manually verified that the small clock and smartspace don't jump when transitioning from AOD to lockscreen. In order to do this, I turned on AOD in settings, pressed the power button to get into AOD and then pressed the power button again, to wake up from AOD. I verified that the small clock and smartspace don't "jump"; instead they translate smoothly from burnIn prevent position in AOD to Lockscreen position. I attached videos for before and after in the second comment of b/334982979.
Bug: 334982979
Flag: ACONFIG com.android.systemui.compose_lockscreen DEVELOPMENT
Change-Id: I707bf1354b14df5e04309b40c6080e26a7ac2bdc
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions