File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/ui/emptystate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33package org.schabi.newpipe.ui.emptystate
44
5+ import androidx.compose.material3.LocalContentColor
6+ import androidx.compose.material3.MaterialTheme
7+ import androidx.compose.material3.contentColorFor
8+ import androidx.compose.runtime.CompositionLocalProvider
59import androidx.compose.ui.platform.ComposeView
610import androidx.compose.ui.platform.ViewCompositionStrategy
711import org.schabi.newpipe.ui.theme.AppTheme
@@ -14,9 +18,13 @@ fun ComposeView.setEmptyStateComposable(
1418 setViewCompositionStrategy(strategy)
1519 setContent {
1620 AppTheme {
17- EmptyStateComposable (
18- spec = spec
19- )
21+ CompositionLocalProvider (
22+ LocalContentColor provides contentColorFor(MaterialTheme .colorScheme.background)
23+ ) {
24+ EmptyStateComposable (
25+ spec = spec
26+ )
27+ }
2028 }
2129 }
2230}
You can’t perform that action at this time.
0 commit comments