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

Commit 313ae7ef 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

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

Change-Id: Ia5b44c4f8ee17e92d50b9c35285cb9dae71508cf
parents 9921c213 b94c50ec
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,