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

Commit 437dda6c authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Migrated to new Person API" into pi-dev

am: def4ab55

Change-Id: I982c6fdebaeed5d222cd6ab2074ac3dee6893c2b
parents 8f87419d def4ab55
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.server.telecom;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.Person;
import android.content.Context;
import android.os.VibrationEffect;
import android.telecom.Log;
@@ -279,8 +280,8 @@ public class Ringer {
                (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
        final Bundle peopleExtras = new Bundle();
        if (contactUri != null) {
            ArrayList<Notification.Person> personList = new ArrayList<>();
            personList.add(new Notification.Person().setUri(contactUri.toString()));
            ArrayList<Person> personList = new ArrayList<>();
            personList.add(new Person.Builder().setUri(contactUri.toString()).build());
            peopleExtras.putParcelableArrayList(Notification.EXTRA_PEOPLE_LIST, personList);
        }
        return manager.matchesCallFilter(peopleExtras);