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

Commit f99f9f33 authored by Junyeong Bak's avatar Junyeong Bak Committed by Automerger Merge Worker
Browse files

Fixed that the duplicated UserHandle not to be added when it's delivered while...

Fixed that the duplicated UserHandle not to be added when it's delivered while booting process am: b94c50ec am: 313ae7ef

Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1948397

Change-Id: I9d1b62d9de2316b67a78c74a6c79bbeddc7a3a5c
parents 2ca2bbe1 313ae7ef
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -68,14 +68,15 @@ import android.text.TextUtils;

import android.telecom.CallerInfo;
import android.util.ArrayMap;
import android.util.ArraySet;

import java.lang.Override;
import java.lang.String;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;

/**
 * Creates a notification for calls that the user missed (neither answered nor rejected).
@@ -141,7 +142,7 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements
    // Used to track the number of missed calls.
    private final Map<UserHandle, Integer> mMissedCallCounts;

    private List<UserHandle> mUsersToLoadAfterBootComplete = new ArrayList<>();
    private Set<UserHandle> mUsersToLoadAfterBootComplete = new ArraySet<>();

    public MissedCallNotifierImpl(Context context, PhoneAccountRegistrar phoneAccountRegistrar,
            DefaultDialerCache defaultDialerCache,