mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-16 11:31:46 +01:00
Use long labels for shortcuts instead of short ones
This commit is contained in:
parent
1698c18d7c
commit
ab8164ccdc
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user