Post a request to apply insets after window is attached.

This commit is contained in:
Alex Hart
2025-11-19 14:27:34 -04:00
parent 278030d950
commit 12a0264e4b

View File

@@ -77,6 +77,7 @@ open class InsetAwareConstraintLayout @JvmOverloads constructor(
super.onAttachedToWindow()
ViewCompat.setOnApplyWindowInsetsListener(this, windowInsetsListener)
post { ViewCompat.requestApplyInsets(this) }
}
override fun onDetachedFromWindow() {