Merge "Don't crash on dialer app target search results" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e80a0caa81
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user