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

Commit ea14110f authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun
Browse files

Do not send APP state NOT_READY when sim is ABSENT.

Should send SIM_STATE_UNKNOWN instead.

Bug: 130762087
Test: test on phone to switch from psim to esim
Change-Id: Ie2bc2285f5b40b5a75648332fd54caae6d7c52b2
parent db8d2e7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -541,7 +541,7 @@ public class SubscriptionInfoUpdater extends Handler {
        updateSubscriptionInfoByIccId(slotId);
        broadcastSimStateChanged(slotId, IccCardConstants.INTENT_VALUE_ICC_ABSENT, null);
        broadcastSimCardStateChanged(slotId, TelephonyManager.SIM_STATE_ABSENT);
        broadcastSimApplicationStateChanged(slotId, TelephonyManager.SIM_STATE_NOT_READY);
        broadcastSimApplicationStateChanged(slotId, TelephonyManager.SIM_STATE_UNKNOWN);
        updateSubscriptionCarrierId(slotId, IccCardConstants.INTENT_VALUE_ICC_ABSENT);
        updateCarrierServices(slotId, IccCardConstants.INTENT_VALUE_ICC_ABSENT);
    }