Suggest result should launch

Bug: 169980192

Change-Id: I762245a5cc4740d093c9cb3b44a508e9e3f2b763
This commit is contained in:
Hyunyoung Song 2020-10-02 19:20:11 -07:00
parent 8d14dbe041
commit 7fcd74abb3
1 changed files with 2 additions and 1 deletions

View File

@ -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);