compose: details: Disable open button if package has no launch intent

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-10-12 11:15:41 +08:00
parent 1da8659de7
commit 4b1dcdc8d3

View File

@@ -299,7 +299,9 @@ private fun ScreenContentApp(
primaryActionDisplayName = stringResource(R.string.action_open),
secondaryActionDisplayName = stringResource(R.string.action_uninstall),
onPrimaryAction = onOpen,
onSecondaryAction = onUninstall
onSecondaryAction = onUninstall,
isPrimaryActionEnabled = PackageUtil
.getLaunchIntent(context, app.packageName) != null
)
}