Don't crash on dialer app target search results
Bug: 186412929 Test: manual Change-Id: Ic1ab6e212d36ca1f711f51d047e4d62106bf0680
This commit is contained in:
parent
cff951ab18
commit
67edf1654c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue