Use long labels for shortcuts instead of short ones

This commit is contained in:
Ensar Sarajčić 2023-09-11 13:36:24 +02:00
parent 1698c18d7c
commit ab8164ccdc
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ fun Activity.handleGridItemPopupMenu(anchorView: View, gridItem: HomeScreenGridI
if (hasShortcuts) { if (hasShortcuts) {
val iconSize = resources.getDimensionPixelSize(R.dimen.menu_icon_size) val iconSize = resources.getDimensionPixelSize(R.dimen.menu_icon_size)
shortcuts?.forEach { shortcuts?.forEach {
menu.add(R.id.group_shortcuts, Menu.NONE, Menu.NONE, it.shortLabel) menu.add(R.id.group_shortcuts, Menu.NONE, Menu.NONE, it.longLabel)
.setIcon( .setIcon(
launcherApps.getShortcutIconDrawable(it, resources.displayMetrics.densityDpi).toBitmap(width = iconSize, height = iconSize) launcherApps.getShortcutIconDrawable(it, resources.displayMetrics.densityDpi).toBitmap(width = iconSize, height = iconSize)
.toDrawable(resources) .toDrawable(resources)