mirror of
https://github.com/ReVanced/revanced-manager
synced 2026-04-25 17:15:36 +02:00
fix: Show patchable section header only when it's not the only section (#3173)
This commit is contained in:
@@ -355,15 +355,17 @@ fun AppsScreen(
|
||||
}
|
||||
}
|
||||
|
||||
item(key = "HEADER_PATCHABLE") {
|
||||
Text(
|
||||
text = stringResource(R.string.patchable_apps_section_title),
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
style = MaterialTheme.typography.labelLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = TITLE_HORIZONTAL, vertical = TITLE_VERTICAL)
|
||||
)
|
||||
if (patched.isNotEmpty()) {
|
||||
item(key = "HEADER_PATCHABLE") {
|
||||
Text(
|
||||
text = stringResource(R.string.patchable_apps_section_title),
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
style = MaterialTheme.typography.labelLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = TITLE_HORIZONTAL, vertical = TITLE_VERTICAL)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
item(key = "PATCHABLE_STORAGE") {
|
||||
|
||||
Reference in New Issue
Block a user