mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix both warning banner appearing for unofficial ext (#7150)
This commit is contained in:
parent
63987f952e
commit
cbc114608b
1 changed files with 9 additions and 10 deletions
|
@ -68,16 +68,15 @@ fun ExtensionDetailsScreen(
|
|||
modifier = Modifier.nestedScroll(nestedScrollInterop),
|
||||
contentPadding = WindowInsets.navigationBars.asPaddingValues(),
|
||||
) {
|
||||
if (extension.isObsolete) {
|
||||
item {
|
||||
WarningBanner(R.string.obsolete_extension_message)
|
||||
}
|
||||
}
|
||||
|
||||
if (extension.isUnofficial) {
|
||||
item {
|
||||
WarningBanner(R.string.unofficial_extension_message)
|
||||
}
|
||||
when {
|
||||
extension.isUnofficial ->
|
||||
item {
|
||||
WarningBanner(R.string.unofficial_extension_message)
|
||||
}
|
||||
extension.isObsolete ->
|
||||
item {
|
||||
WarningBanner(R.string.obsolete_extension_message)
|
||||
}
|
||||
}
|
||||
|
||||
item {
|
||||
|
|
Loading…
Reference in a new issue