Fix both warning banner appearing for unofficial ext (#7150)
(cherry picked from commit cbc114608b76a083b4db8f66abde456a32b61638)
This commit is contained in:
parent
0462e8bac1
commit
5c723398e0
@ -68,26 +68,23 @@ fun ExtensionDetailsScreen(
|
|||||||
modifier = Modifier.nestedScroll(nestedScrollInterop),
|
modifier = Modifier.nestedScroll(nestedScrollInterop),
|
||||||
contentPadding = WindowInsets.navigationBars.asPaddingValues(),
|
contentPadding = WindowInsets.navigationBars.asPaddingValues(),
|
||||||
) {
|
) {
|
||||||
if (extension.isObsolete) {
|
when {
|
||||||
|
// SY -->
|
||||||
|
extension.isRedundant ->
|
||||||
|
item {
|
||||||
|
WarningBanner(R.string.redundant_extension_message)
|
||||||
|
}
|
||||||
|
// SY <--
|
||||||
|
extension.isUnofficial ->
|
||||||
|
item {
|
||||||
|
WarningBanner(R.string.unofficial_extension_message)
|
||||||
|
}
|
||||||
|
extension.isObsolete ->
|
||||||
item {
|
item {
|
||||||
WarningBanner(R.string.obsolete_extension_message)
|
WarningBanner(R.string.obsolete_extension_message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extension.isUnofficial) {
|
|
||||||
item {
|
|
||||||
WarningBanner(R.string.unofficial_extension_message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// SY -->
|
|
||||||
if (extension.isRedundant) {
|
|
||||||
item {
|
|
||||||
WarningBanner(R.string.redundant_extension_message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// SY <--
|
|
||||||
|
|
||||||
item {
|
item {
|
||||||
DetailsHeader(extension, onClickUninstall, onClickAppInfo)
|
DetailsHeader(extension, onClickUninstall, onClickAppInfo)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user