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

Commit b59795b2 authored by Selim Cinek's avatar Selim Cinek
Browse files

Migrated to new Person API

Test: Post notification
Bug: 75980526
Change-Id: I1f113eb5534ff8f2e047641774469d1c77035d31
parent c100da8c
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);