@@ -7,12 +7,10 @@ import androidx.compose.foundation.layout.fillMaxSize
77import androidx.compose.foundation.layout.fillMaxWidth
88import androidx.compose.foundation.layout.heightIn
99import androidx.compose.foundation.layout.padding
10- import androidx.compose.material3.LocalContentColor
1110import androidx.compose.material3.LocalTextStyle
1211import androidx.compose.material3.MaterialTheme
1312import androidx.compose.material3.Text
1413import androidx.compose.runtime.Composable
15- import androidx.compose.runtime.CompositionLocalProvider
1614import androidx.compose.ui.Alignment
1715import androidx.compose.ui.Modifier
1816import androidx.compose.ui.res.stringResource
@@ -23,7 +21,6 @@ import androidx.compose.ui.unit.dp
2321import androidx.compose.ui.unit.sp
2422import org.schabi.newpipe.R
2523import org.schabi.newpipe.ui.theme.AppTheme
26- import org.schabi.newpipe.ui.theme.errorHint
2724
2825@Composable
2926fun EmptyStateComposable (
@@ -49,26 +46,22 @@ private fun EmptyStateComposable(
4946 descriptionText : String ,
5047 descriptionTextStyle : TextStyle ,
5148) {
52- CompositionLocalProvider (
53- LocalContentColor provides MaterialTheme .colorScheme.errorHint
49+ Column (
50+ modifier = modifier,
51+ horizontalAlignment = Alignment .CenterHorizontally ,
52+ verticalArrangement = Arrangement .Center
5453 ) {
55- Column (
56- modifier = modifier,
57- horizontalAlignment = Alignment .CenterHorizontally ,
58- verticalArrangement = Arrangement .Center
59- ) {
60- Text (
61- modifier = emojiModifier,
62- text = emojiText,
63- style = emojiTextStyle,
64- )
54+ Text (
55+ modifier = emojiModifier,
56+ text = emojiText,
57+ style = emojiTextStyle,
58+ )
6559
66- Text (
67- modifier = descriptionModifier,
68- text = descriptionText,
69- style = descriptionTextStyle,
70- )
71- }
60+ Text (
61+ modifier = descriptionModifier,
62+ text = descriptionText,
63+ style = descriptionTextStyle,
64+ )
7265 }
7366}
7467
0 commit comments