Merge "Suggest result should launch Bug: 169980192" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot 2020-10-05 17:14:21 +00:00 committed by Android (Google) Code Review
commit a5130482ae
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) { private void handleSelection(int eventType) {
ItemInfo itemInfo = (ItemInfo) getTag(); ItemInfo itemInfo = (ItemInfo) getTag();
Launcher launcher = Launcher.getLauncher(getContext()); Launcher launcher = Launcher.getLauncher(getContext());
if (itemInfo instanceof RemoteActionItemInfo) return;
if (!(itemInfo instanceof RemoteActionItemInfo)) return;
RemoteActionItemInfo remoteItemInfo = (RemoteActionItemInfo) itemInfo; RemoteActionItemInfo remoteItemInfo = (RemoteActionItemInfo) itemInfo;
ItemClickHandler.onClickRemoteAction(launcher, remoteItemInfo); ItemClickHandler.onClickRemoteAction(launcher, remoteItemInfo);