[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:
@@ -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. -->
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user