Don't crash on dialer app target search results

Bug: 186412929
Test: manual
Change-Id: Ic1ab6e212d36ca1f711f51d047e4d62106bf0680
This commit is contained in:
Hyunyoung Song 2021-05-04 22:29:33 -07:00
parent cff951ab18
commit 67edf1654c
1 changed files with 5 additions and 0 deletions

View File

@ -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() {