compose: details: Disable open button if package has no launch intent
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user