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

Commit 78d18943 authored by Wei Ying's avatar Wei Ying Committed by Gerrit Code Review
Browse files

For NV-based devices like CDMA only devices, ignore ICC Card status

change EVENT.

Change-Id: If17a5642275cb688af4dfa664531624e045053ed
parent aa5e09d6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -226,11 +226,21 @@ public class IccCardProxy extends Handler implements IccCard {
                }
                break;
            case EVENT_ICC_CHANGED:
                // For CDMA Nv device, should not handle Icc change since no SIM card.
                if (mQuietMode) {
                    log("QuietMode: ignore ICC changed ");
                    return;
                }
                if (mInitialized) {
                    updateIccAvailability();
                }
                break;
            case EVENT_ICC_ABSENT:
                // For CDMA Nv device, should not handle Icc absent since no SIM Card.
                if (mQuietMode) {
                    log("QuietMode: ignore SIM absent ");
                    return;
                }
                mAbsentRegistrants.notifyRegistrants();
                setExternalState(State.ABSENT);
                break;