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.SHARE -> context.share(app.displayName, app.packageName)
|
||||||
MenuItem.APP_INFO -> context.appInfo(app.packageName)
|
MenuItem.APP_INFO -> context.appInfo(app.packageName)
|
||||||
MenuItem.PLAY_STORE -> context.browse("$SHARE_URL${app.packageName}")
|
|
||||||
MenuItem.ADD_TO_HOME -> {
|
MenuItem.ADD_TO_HOME -> {
|
||||||
ShortcutManagerUtil.requestPinShortcut(context, app.packageName)
|
ShortcutManagerUtil.requestPinShortcut(context, app.packageName)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,10 +81,6 @@ fun AppDetailsMenu(
|
|||||||
onClick = { onClick(MenuItem.MANUAL_DOWNLOAD) },
|
onClick = { onClick(MenuItem.MANUAL_DOWNLOAD) },
|
||||||
enabled = !state.inProgress()
|
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
|
// Inflate actions available only when app is installed below
|
||||||
if (!isInstalled) return@DropdownMenu
|
if (!isInstalled) return@DropdownMenu
|
||||||
|
|||||||
@@ -13,6 +13,5 @@ enum class MenuItem {
|
|||||||
SHARE,
|
SHARE,
|
||||||
MANUAL_DOWNLOAD,
|
MANUAL_DOWNLOAD,
|
||||||
APP_INFO,
|
APP_INFO,
|
||||||
PLAY_STORE,
|
|
||||||
ADD_TO_HOME
|
ADD_TO_HOME
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user