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:
@@ -242,12 +242,12 @@ open class QSTileViewImpl @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateHeight() {
|
private fun updateHeight() {
|
||||||
val actualHeight = (if (heightOverride != HeightOverrideable.NO_OVERRIDE) {
|
val actualHeight = if (heightOverride != HeightOverrideable.NO_OVERRIDE) {
|
||||||
heightOverride
|
heightOverride
|
||||||
} else {
|
} else {
|
||||||
measuredHeight
|
measuredHeight
|
||||||
} * squishinessFraction).toInt()
|
}
|
||||||
bottom = top + actualHeight
|
bottom = top + (actualHeight * squishinessFraction).toInt()
|
||||||
scrollY = (actualHeight - height) / 2
|
scrollY = (actualHeight - height) / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user