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

Commit b94c50ec authored by Junyeong Bak's avatar Junyeong Bak Committed by junyeong.bak@samsung.com
Browse files

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



Fixed that the duplicated missed call notification not to be registered
in multi-user environment by not adding the duplicated UserHandle

Bug: 214485291
Test: Reboot the device in multi-user environment when missed call notification is already exist

Signed-off-by: default avatarJunyeong Bak <junyeong.bak@samsung.com>
Change-Id: I70a309250eb926d9d9aa888d4aa4fd6579fdfe95
parent 735c2495
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,