Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b91480e3 authored by thiruram's avatar thiruram
Browse files

Add app launch event for tap on shortcut in shortcut container.

Bug: 157765763
Change-Id: I769eb81ccabc96ad1c6c4c3d53ff89a8a744c3e0
parent 2a4dce14
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.launcher3.popup;

import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_SHORTCUTS;

import android.content.ComponentName;
import android.content.pm.ShortcutInfo;
import android.os.Handler;
@@ -160,6 +162,7 @@ public class PopupPopulator {
                final WorkspaceItemInfo si = new WorkspaceItemInfo(shortcut, launcher);
                cache.getUnbadgedShortcutIcon(si, shortcut);
                si.rank = i;
                si.container = CONTAINER_SHORTCUTS;

                final DeepShortcutView view = shortcutViews.get(i);
                uiHandler.post(() -> view.applyShortcutInfo(si, shortcut, container));