Skip to content

Commit 12a0264

Browse files
committed
Post a request to apply insets after window is attached.
1 parent 278030d commit 12a0264

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/org/thoughtcrime/securesms/components/InsetAwareConstraintLayout.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ open class InsetAwareConstraintLayout @JvmOverloads constructor(
7777
super.onAttachedToWindow()
7878

7979
ViewCompat.setOnApplyWindowInsetsListener(this, windowInsetsListener)
80+
post { ViewCompat.requestApplyInsets(this) }
8081
}
8182

8283
override fun onDetachedFromWindow() {

0 commit comments

Comments
 (0)