Skip to content

Commit 65b9e95

Browse files
authored
fix: Show patchable section header only when it's not the only section (#3173)
1 parent 81bb43f commit 65b9e95

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

app/src/main/java/app/revanced/manager/ui/screen/AppsScreen.kt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -355,15 +355,17 @@ fun AppsScreen(
355355
}
356356
}
357357

358-
item(key = "HEADER_PATCHABLE") {
359-
Text(
360-
text = stringResource(R.string.patchable_apps_section_title),
361-
color = MaterialTheme.colorScheme.primary,
362-
style = MaterialTheme.typography.labelLarge,
363-
modifier = Modifier
364-
.fillMaxWidth()
365-
.padding(horizontal = TITLE_HORIZONTAL, vertical = TITLE_VERTICAL)
366-
)
358+
if (patched.isNotEmpty()) {
359+
item(key = "HEADER_PATCHABLE") {
360+
Text(
361+
text = stringResource(R.string.patchable_apps_section_title),
362+
color = MaterialTheme.colorScheme.primary,
363+
style = MaterialTheme.typography.labelLarge,
364+
modifier = Modifier
365+
.fillMaxWidth()
366+
.padding(horizontal = TITLE_HORIZONTAL, vertical = TITLE_VERTICAL)
367+
)
368+
}
367369
}
368370

369371
item(key = "PATCHABLE_STORAGE") {

0 commit comments

Comments
 (0)