mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-01 14:34:24 +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(
|
||||||
BundleListItem(
|
headlineText = stringResource(R.string.patches),
|
||||||
headlineText = stringResource(R.string.patches),
|
supportingText = if (patchCount == 0) stringResource(R.string.no_patches)
|
||||||
supportingText = if (patchCount == 0) stringResource(R.string.no_patches)
|
else stringResource(R.string.patches_available, patchCount),
|
||||||
else stringResource(R.string.patches_available, patchCount),
|
modifier = Modifier.clickable(enabled = patchCount > 0) {
|
||||||
trailingContent = {
|
onPatchesClick()
|
||||||
if (patchCount > 0) {
|
}
|
||||||
IconButton(onClick = onPatchesClick) {
|
) {
|
||||||
Icon(
|
if (patchCount > 0) {
|
||||||
Icons.Outlined.ArrowRight,
|
Icon(
|
||||||
stringResource(R.string.patches)
|
Icons.Outlined.ArrowRight,
|
||||||
)
|
stringResource(R.string.patches)
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
version?.let {
|
version?.let {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user