give more info about long pressed item to the activity

This commit is contained in:
tibbi
2022-09-20 15:58:57 +02:00
parent 97fd224619
commit 012f56cec0
4 changed files with 47 additions and 34 deletions

View File

@ -36,7 +36,7 @@ fun Activity.uninstallApp(packageName: String) {
}
}
fun Activity.handleAppIconPopupMenu(anchorView: View, appPackageName: String): PopupMenu {
fun Activity.handleGridItemPopupMenu(anchorView: View, appPackageName: String): PopupMenu {
val contextTheme = ContextThemeWrapper(this, getPopupMenuTheme())
return PopupMenu(contextTheme, anchorView, Gravity.TOP or Gravity.END).apply {
inflate(R.menu.menu_app_icon)