From de9a5e109d9636bd7e0f0e390658d33214c873d2 Mon Sep 17 00:00:00 2001 From: Hilary Huo Date: Fri, 25 Sep 2020 11:12:51 -0700 Subject: [PATCH] [pixel-search] Change Nasa actions title name Change-Id: I3e44513d797d867b97664ff2ee46a8e33d020e99 --- src/com/android/launcher3/views/SearchResultIconRow.java | 3 ++- .../com/android/systemui/plugins/shared/SearchTarget.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher3/views/SearchResultIconRow.java b/src/com/android/launcher3/views/SearchResultIconRow.java index 57c85cf42e..313ae5e611 100644 --- a/src/com/android/launcher3/views/SearchResultIconRow.java +++ b/src/com/android/launcher3/views/SearchResultIconRow.java @@ -42,6 +42,7 @@ import com.android.launcher3.model.data.WorkspaceItemInfo; import com.android.launcher3.touch.ItemClickHandler; import com.android.systemui.plugins.AllAppsSearchPlugin; import com.android.systemui.plugins.shared.SearchTarget; +import com.android.systemui.plugins.shared.SearchTarget.ItemType; import com.android.systemui.plugins.shared.SearchTargetEvent; /** @@ -138,7 +139,7 @@ public class SearchResultIconRow extends DoubleShadowBubbleTextView implements } else { RemoteActionItemInfo remoteItemInfo = (RemoteActionItemInfo) itemInfo; ItemClickHandler.onClickRemoteAction(launcher, remoteItemInfo); - searchTargetEvent = getSearchTargetEvent(SearchTarget.ItemType.REMOTE_ACTION, + searchTargetEvent = getSearchTargetEvent(ItemType.ACTION, eventType); searchTargetEvent.bundle = new Bundle(); searchTargetEvent.remoteAction = remoteItemInfo.getRemoteAction(); diff --git a/src_plugins/com/android/systemui/plugins/shared/SearchTarget.java b/src_plugins/com/android/systemui/plugins/shared/SearchTarget.java index 3780b20926..3f0dc39cc1 100644 --- a/src_plugins/com/android/systemui/plugins/shared/SearchTarget.java +++ b/src_plugins/com/android/systemui/plugins/shared/SearchTarget.java @@ -107,8 +107,9 @@ public class SearchTarget implements Comparable { SHORTCUT(5, "Shortcuts", ViewType.SHORTCUT), PEOPLE(6, "People", ViewType.PEOPLE), SCREENSHOT(7, "Screenshots", ViewType.THUMBNAIL), - REMOTE_ACTION(8, "Remote Actions", ViewType.SHORTCUT), - SUGGEST(9, "Fallback Search", ViewType.SUGGEST); + ACTION(8, "Actions", ViewType.SHORTCUT), + SUGGEST(9, "Fallback Search", ViewType.SUGGEST), + CHROME_TAB(10, "Chrome Tab", ViewType.SHORTCUT); private final int mId;