diff --git a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt index b496e6b7fe068..403eb7ec9b033 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt +++ b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt @@ -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 }