Merge "Correctly apply scrollY" into sc-v2-dev

This commit is contained in:
Lucas Dupin
2021-11-03 15:01:11 +00:00
committed by Android (Google) Code Review

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
}