From 67edf1654c2d5b4cba800065f75d6ac39ed8c53c Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Tue, 4 May 2021 22:29:33 -0700 Subject: [PATCH] Don't crash on dialer app target search results Bug: 186412929 Test: manual Change-Id: Ic1ab6e212d36ca1f711f51d047e4d62106bf0680 --- .../android/launcher3/model/data/SearchActionItemInfo.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/launcher3/model/data/SearchActionItemInfo.java b/src/com/android/launcher3/model/data/SearchActionItemInfo.java index b3057d5bd2..0eea92c691 100644 --- a/src/com/android/launcher3/model/data/SearchActionItemInfo.java +++ b/src/com/android/launcher3/model/data/SearchActionItemInfo.java @@ -94,6 +94,11 @@ public class SearchActionItemInfo extends ItemInfoWithIcon { "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() {