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