mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix(ui): make entire patches view button selectable (#1271)
This commit is contained in:
parent
4cb4ce298a
commit
e0f8d06152
@ -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 New Issue
Block a user