From 7fcd74abb399100ac8243be6ca28c09cc8adc8c8 Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Fri, 2 Oct 2020 19:20:11 -0700 Subject: [PATCH] Suggest result should launch Bug: 169980192 Change-Id: I762245a5cc4740d093c9cb3b44a508e9e3f2b763 --- src/com/android/launcher3/views/SearchResultSuggestRow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/views/SearchResultSuggestRow.java b/src/com/android/launcher3/views/SearchResultSuggestRow.java index b5abbcc724..6543c76cfb 100644 --- a/src/com/android/launcher3/views/SearchResultSuggestRow.java +++ b/src/com/android/launcher3/views/SearchResultSuggestRow.java @@ -96,7 +96,8 @@ public class SearchResultSuggestRow extends LinearLayout implements private void handleSelection(int eventType) { ItemInfo itemInfo = (ItemInfo) getTag(); Launcher launcher = Launcher.getLauncher(getContext()); - if (itemInfo instanceof RemoteActionItemInfo) return; + + if (!(itemInfo instanceof RemoteActionItemInfo)) return; RemoteActionItemInfo remoteItemInfo = (RemoteActionItemInfo) itemInfo; ItemClickHandler.onClickRemoteAction(launcher, remoteItemInfo);