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,22 +159,20 @@ 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 = {
|
||||
if (patchCount > 0) {
|
||||
IconButton(onClick = onPatchesClick) {
|
||||
Icon(
|
||||
Icons.Outlined.ArrowRight,
|
||||
stringResource(R.string.patches)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
BundleListItem(
|
||||
headlineText = stringResource(R.string.patches),
|
||||
supportingText = if (patchCount == 0) stringResource(R.string.no_patches)
|
||||
else stringResource(R.string.patches_available, patchCount),
|
||||
modifier = Modifier.clickable(enabled = patchCount > 0) {
|
||||
onPatchesClick()
|
||||
}
|
||||
) {
|
||||
if (patchCount > 0) {
|
||||
Icon(
|
||||
Icons.Outlined.ArrowRight,
|
||||
stringResource(R.string.patches)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
version?.let {
|
||||
|
|
Loading…
Reference in a new issue