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 69be332619957..2bd5c8f0fc203 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 }