mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix(ui): make entire patches view button selectable (#1271)
This commit is contained in:
parent
4cb4ce298a
commit
e0f8d06152
1 changed files with 14 additions and 16 deletions
|
@ -159,23 +159,21 @@ fun BaseBundleDialog(
|
|||
)
|
||||
}
|
||||
|
||||
if (patchCount > 0) {
|
||||
BundleListItem(
|
||||
headlineText = stringResource(R.string.patches),
|
||||
supportingText = if (patchCount == 0) stringResource(R.string.no_patches)
|
||||
else stringResource(R.string.patches_available, patchCount),
|
||||
trailingContent = {
|
||||
modifier = Modifier.clickable(enabled = patchCount > 0) {
|
||||
onPatchesClick()
|
||||
}
|
||||
) {
|
||||
if (patchCount > 0) {
|
||||
IconButton(onClick = onPatchesClick) {
|
||||
Icon(
|
||||
Icons.Outlined.ArrowRight,
|
||||
stringResource(R.string.patches)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
version?.let {
|
||||
BundleListItem(
|
||||
|
|
Loading…
Reference in a new issue