Add more context to obsolete extension warning

(cherry picked from commit 8417f5a63c)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/browse/ExtensionDetailsScreen.kt
This commit is contained in:
arkon
2022-10-29 16:35:32 -04:00
committed by Jobobby04
parent 1fcf8450b8
commit 963d09d270
3 changed files with 9 additions and 13 deletions
@@ -9,7 +9,6 @@ import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
@@ -222,20 +221,17 @@ private fun WarningBanner(
// SY -->
modifier: Modifier = Modifier,
) {
Box(
Text(
text = stringResource(textRes),
modifier = modifier
// SY <--
.fillMaxWidth()
.background(MaterialTheme.colorScheme.error)
.padding(16.dp),
contentAlignment = Alignment.Center,
) {
Text(
text = stringResource(textRes),
color = MaterialTheme.colorScheme.onError,
style = MaterialTheme.typography.bodyMedium,
)
}
color = MaterialTheme.colorScheme.onError,
style = MaterialTheme.typography.bodyMedium,
textAlign = TextAlign.Center,
)
}
@Composable
@@ -143,7 +143,7 @@ private fun UpdateScreenContent(
if (presenter.lastUpdated > 0L) {
updatesLastUpdatedItem(presenter.lastUpdated)
}
updatesUiItems(
uiModels = presenter.uiModels,
selectionMode = presenter.selectionMode,