ui: remove redundant sheet content inset

This commit is contained in:
Alexander Capehart 2024-01-02 15:38:34 -07:00
parent 8a75295d99
commit 7537d135f2
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -68,12 +68,6 @@ class BottomSheetContentBehavior<V : View>(context: Context, attributeSet: Attri
if (consumed != lastConsumed) { if (consumed != lastConsumed) {
logD("Consumed amount changed, re-applying insets") logD("Consumed amount changed, re-applying insets")
lastConsumed = consumed lastConsumed = consumed
val insets = lastInsets
if (insets != null) {
child.dispatchApplyWindowInsets(insets)
}
lastInsets?.let(child::dispatchApplyWindowInsets) lastInsets?.let(child::dispatchApplyWindowInsets)
measureContent(parent, child, consumed) measureContent(parent, child, consumed)
layoutContent(child) layoutContent(child)