mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 11:08:31 +00:00
Post a request to apply insets after window is attached.
This commit is contained in:
@@ -77,6 +77,7 @@ open class InsetAwareConstraintLayout @JvmOverloads constructor(
|
|||||||
super.onAttachedToWindow()
|
super.onAttachedToWindow()
|
||||||
|
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(this, windowInsetsListener)
|
ViewCompat.setOnApplyWindowInsetsListener(this, windowInsetsListener)
|
||||||
|
post { ViewCompat.requestApplyInsets(this) }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDetachedFromWindow() {
|
override fun onDetachedFromWindow() {
|
||||||
|
|||||||
Reference in New Issue
Block a user