Skip to content

Commit

Permalink
Add workaround for b/336842920
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed May 21, 2024
1 parent 8aba7ed commit 61b7bbf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ fun PillarboxTheme(
}

MaterialTheme(colorScheme = colorScheme) {
CompositionLocalProvider(LocalPaddings provides paddings) {
CompositionLocalProvider(
LocalPaddings provides paddings,
// TODO Remove this when Compose 1.7 is stable (see https://issuetracker.google.com/issues/336842920)
androidx.lifecycle.compose.LocalLifecycleOwner provides androidx.compose.ui.platform.LocalLifecycleOwner.current,
) {
content()
}
}
Expand Down

0 comments on commit 61b7bbf

Please sign in to comment.