Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e80a0caa authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't crash on dialer app target search results" into sc-dev

parents 7645422e 67edf165
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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() {