compose: details: Drop open in playstore option
We are the playstore replacement and share option works better when it comes to conflicting with app links Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -265,7 +265,6 @@ private fun ScreenContentApp(
|
||||
}
|
||||
MenuItem.SHARE -> context.share(app.displayName, app.packageName)
|
||||
MenuItem.APP_INFO -> context.appInfo(app.packageName)
|
||||
MenuItem.PLAY_STORE -> context.browse("$SHARE_URL${app.packageName}")
|
||||
MenuItem.ADD_TO_HOME -> {
|
||||
ShortcutManagerUtil.requestPinShortcut(context, app.packageName)
|
||||
}
|
||||
|
||||
@@ -81,10 +81,6 @@ fun AppDetailsMenu(
|
||||
onClick = { onClick(MenuItem.MANUAL_DOWNLOAD) },
|
||||
enabled = !state.inProgress()
|
||||
)
|
||||
DropdownMenuItem(
|
||||
text = { Text(text = stringResource(R.string.title_download_playstore)) },
|
||||
onClick = { onClick(MenuItem.PLAY_STORE) }
|
||||
)
|
||||
|
||||
// Inflate actions available only when app is installed below
|
||||
if (!isInstalled) return@DropdownMenu
|
||||
|
||||
@@ -13,6 +13,5 @@ enum class MenuItem {
|
||||
SHARE,
|
||||
MANUAL_DOWNLOAD,
|
||||
APP_INFO,
|
||||
PLAY_STORE,
|
||||
ADD_TO_HOME
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user