[Motion] Split-shade expansion on LS: disable depth effect

Disables the depth change effect of the wallpaper when expanding
the shade, to match the motion spec for T.

Fixes: 222282930
Test: Manually
Change-Id: Ifbcbec9a6cd37154c728b07db61bd507c4ec1351
This commit is contained in:
Christian Göllner
2022-03-02 16:48:01 +01:00
parent 183b053b9f
commit ea50684c12
2 changed files with 8 additions and 4 deletions

View File

@@ -62,8 +62,9 @@
<dimen name="lockscreen_shade_qs_transition_distance">@dimen/lockscreen_shade_full_transition_distance</dimen>
<!-- Distance that the full shade transition takes in order for depth of the wallpaper to fully
change. -->
<dimen name="lockscreen_shade_depth_controller_transition_distance">@dimen/lockscreen_shade_full_transition_distance</dimen>
change.
On split-shade, there should be no depth effect, so setting the value to 0. -->
<dimen name="lockscreen_shade_depth_controller_transition_distance">0dp</dimen>
<!-- Distance that the full shade transition takes in order for the UDFPS Keyguard View to fully
fade. -->

View File

@@ -424,8 +424,11 @@ class LockscreenShadeTransitionController @Inject constructor(
MathUtils.saturate(dragDownAmount / npvcKeyguardContentAlphaTransitionDistance)
notificationPanelController.setKeyguardOnlyContentAlpha(1.0f - npvcProgress)
val depthProgress = MathUtils.saturate(dragDownAmount / depthControllerTransitionDistance)
depthController.transitionToFullShadeProgress = depthProgress
if (depthControllerTransitionDistance > 0) {
val depthProgress =
MathUtils.saturate(dragDownAmount / depthControllerTransitionDistance)
depthController.transitionToFullShadeProgress = depthProgress
}
val udfpsProgress = MathUtils.saturate(dragDownAmount / udfpsTransitionDistance)
udfpsKeyguardViewController?.setTransitionToFullShadeProgress(udfpsProgress)