Skip to content

Commit 101056c

Browse files
committedSep 2, 2020
[Jetsnack] Provide default value for InsetsAmbient. Fixes android#130.
Change-Id: Iea50a0e3b91580d23d3f7d90a550d79a9679f729
1 parent 6faccde commit 101056c

File tree

1 file changed

+1
-1
lines changed
  • Jetsnack/app/src/main/java/com/example/jetsnack/ui/utils

1 file changed

+1
-1
lines changed
 

‎Jetsnack/app/src/main/java/com/example/jetsnack/ui/utils/Insets.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Insets {
118118
internal set
119119
}
120120

121-
val InsetsAmbient = staticAmbientOf<DisplayInsets>()
121+
val InsetsAmbient = staticAmbientOf { DisplayInsets() }
122122

123123
/**
124124
* Applies any [WindowInsetsCompat] values to [InsetsAmbient], which are then available

0 commit comments

Comments
 (0)
Please sign in to comment.