commit | 7fcd74abb399100ac8243be6ca28c09cc8adc8c8 | [log] [tgz] |
---|---|---|
author | Hyunyoung Song <hyunyoungs@google.com> | Fri Oct 02 19:20:11 2020 -0700 |
committer | Hyunyoung Song <hyunyoungs@google.com> | Fri Oct 02 19:20:11 2020 -0700 |
tree | 9fb1f5b44567cbfaadfd8cdc3e757d831bea09c8 | |
parent | 8d14dbe041199d611839140f1c9285fd4174e9f4 [diff] |
Suggest result should launch Bug: 169980192 Change-Id: I762245a5cc4740d093c9cb3b44a508e9e3f2b763
diff --git a/src/com/android/launcher3/views/SearchResultSuggestRow.java b/src/com/android/launcher3/views/SearchResultSuggestRow.java index b5abbcc..6543c76 100644 --- a/src/com/android/launcher3/views/SearchResultSuggestRow.java +++ b/src/com/android/launcher3/views/SearchResultSuggestRow.java
@@ -96,7 +96,8 @@ 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);