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

Commit 37d870b3 authored by Shishir Agrawal's avatar Shishir Agrawal Committed by Nathan Harold
Browse files

Unregister from carrier privilege notification on updateIccAvailability.

Bug: 63276405
Test: On SIM swap, only a single SIM LOADED event should fire.
Change-Id: I6a7675b575ca14bb7050e16ca56585828325a43e
parent ee1d6fd1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -469,6 +469,7 @@ public class IccCardProxy extends Handler implements IccCard {

    private void unregisterUiccCardEvents() {
        if (mUiccCard != null) mUiccCard.unregisterForAbsent(this);
        if (mUiccCard != null) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded(this);
        if (mUiccApplication != null) mUiccApplication.unregisterForReady(this);
        if (mUiccApplication != null) mUiccApplication.unregisterForLocked(this);
        if (mUiccApplication != null) mUiccApplication.unregisterForNetworkLocked(this);