Fix both warning banner appearing for unofficial ext (#7150)

This commit is contained in:
FourTOne5 2022-05-16 22:04:54 +06:00 committed by GitHub
parent 63987f952e
commit cbc114608b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,16 +68,15 @@ fun ExtensionDetailsScreen(
modifier = Modifier.nestedScroll(nestedScrollInterop), modifier = Modifier.nestedScroll(nestedScrollInterop),
contentPadding = WindowInsets.navigationBars.asPaddingValues(), contentPadding = WindowInsets.navigationBars.asPaddingValues(),
) { ) {
if (extension.isObsolete) { when {
item { extension.isUnofficial ->
WarningBanner(R.string.obsolete_extension_message) item {
} WarningBanner(R.string.unofficial_extension_message)
} }
extension.isObsolete ->
if (extension.isUnofficial) { item {
item { WarningBanner(R.string.obsolete_extension_message)
WarningBanner(R.string.unofficial_extension_message) }
}
} }
item { item {