fix(ui): make entire patches view button selectable (#1271)

This commit is contained in:
Benjamin 2023-09-21 12:13:25 -07:00 committed by GitHub
parent 4cb4ce298a
commit e0f8d06152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {