Merge "Fixing shade transition calculation logic." into tm-dev am: 79a17c3fa3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17326263 Change-Id: I503bfe89dd2afccc819da10bf6ee844ba473768f
This commit is contained in:
@@ -441,7 +441,9 @@ class LockscreenShadeTransitionController @Inject constructor(
|
||||
}
|
||||
|
||||
private fun transitionToShadeAmountCommon(dragDownAmount: Float) {
|
||||
if (depthControllerTransitionDistance > 0) {
|
||||
if (depthControllerTransitionDistance == 0) { // split shade
|
||||
depthController.transitionToFullShadeProgress = 0f
|
||||
} else {
|
||||
val depthProgress =
|
||||
MathUtils.saturate(dragDownAmount / depthControllerTransitionDistance)
|
||||
depthController.transitionToFullShadeProgress = depthProgress
|
||||
|
||||
Reference in New Issue
Block a user