commit | 67edf1654c2d5b4cba800065f75d6ac39ed8c53c | [log] [tgz] |
---|---|---|
author | Hyunyoung Song <hyunyoungs@google.com> | Tue May 04 22:29:33 2021 -0700 |
committer | Hyunyoung Song <hyunyoungs@google.com> | Tue May 04 22:29:33 2021 -0700 |
tree | 21d9adfdc1d6b42cf444e24f54dd2a0aa9ff2889 | |
parent | cff951ab18ef184f99799f3566791f053f88b59f [diff] |
Don't crash on dialer app target search results Bug: 186412929 Test: manual Change-Id: Ic1ab6e212d36ca1f711f51d047e4d62106bf0680
diff --git a/src/com/android/launcher3/model/data/SearchActionItemInfo.java b/src/com/android/launcher3/model/data/SearchActionItemInfo.java index b3057d5..0eea92c 100644 --- a/src/com/android/launcher3/model/data/SearchActionItemInfo.java +++ b/src/com/android/launcher3/model/data/SearchActionItemInfo.java
@@ -94,6 +94,11 @@ "SearchActionItemInfo can only have either an Intent or a PendingIntent"); } mIntent = intent; + // bandage fix for just one week + if (intent != null && "com.android.server.telecom".equals(intent.getPackage())) { + intent.setAction(Intent.ACTION_DIAL); + intent.setPackage(null); + } } public PendingIntent getPendingIntent() {