Merge "Correctly apply scrollY" into sc-v2-dev am: 7bced578b7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16178330

Change-Id: Idee9f7b1a58b071991eb951bd10d774b2e34559f
This commit is contained in:
Lucas Dupin
2021-11-03 15:17:47 +00:00
committed by Automerger Merge Worker

View File

@@ -242,12 +242,12 @@ open class QSTileViewImpl @JvmOverloads constructor(
}
private fun updateHeight() {
val actualHeight = (if (heightOverride != HeightOverrideable.NO_OVERRIDE) {
val actualHeight = if (heightOverride != HeightOverrideable.NO_OVERRIDE) {
heightOverride
} else {
measuredHeight
} * squishinessFraction).toInt()
bottom = top + actualHeight
}
bottom = top + (actualHeight * squishinessFraction).toInt()
scrollY = (actualHeight - height) / 2
}