@@ -523,34 +523,42 @@ private fun ApkItemCard(
523523 verticalArrangement = Arrangement .spacedBy(8 .dp)
524524 ) {
525525 if (onShare != null ) {
526+ val shareLabel = stringResource(R .string.share)
526527 ActionPillButton (
527528 onClick = onShare,
528529 icon = Icons .Outlined .Share ,
529- contentDescription = stringResource(R .string.share)
530+ contentDescription = shareLabel,
531+ tooltip = shareLabel
530532 )
531533 }
532534
533535 if (onExport != null ) {
536+ val exportLabel = stringResource(R .string.export)
534537 ActionPillButton (
535538 onClick = onExport,
536539 icon = Icons .Outlined .Upload ,
537- contentDescription = stringResource(R .string.export)
540+ contentDescription = exportLabel,
541+ tooltip = exportLabel
538542 )
539543 }
540544
541545 if (onInstall != null ) {
542546 val isMountType = data.installType == InstallType .MOUNT
547+ val installLabel = stringResource(if (isMountType) R .string.mount else R .string.install)
543548 ActionPillButton (
544549 onClick = onInstall,
545550 icon = if (isMountType) Icons .Outlined .Link else Icons .Outlined .InstallMobile ,
546- contentDescription = stringResource(if (isMountType) R .string.mount else R .string.install)
551+ contentDescription = installLabel,
552+ tooltip = installLabel
547553 )
548554 }
549555
556+ val deleteLabel = stringResource(R .string.delete)
550557 ActionPillButton (
551558 onClick = onDelete,
552559 icon = Icons .Outlined .Delete ,
553- contentDescription = stringResource(R .string.delete),
560+ contentDescription = deleteLabel,
561+ tooltip = deleteLabel,
554562 colors = IconButtonDefaults .filledTonalIconButtonColors(
555563 containerColor = MaterialTheme .colorScheme.errorContainer,
556564 contentColor = MaterialTheme .colorScheme.onErrorContainer
0 commit comments