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

Commit 5b81ddfc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update SubscriptionController on NOT_READY only if it is terminal...

Merge "Update SubscriptionController on NOT_READY only if it is terminal state." into sc-dev am: 54a246d9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/15375668

Change-Id: I046c0f8a473bd8c3f837f1bbe5afaf94f0ab7eb8
parents a363bbee 54a246d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -457,10 +457,10 @@ public class SubscriptionInfoUpdater extends Handler {
            // At this phase, the subscription list is accessible. Treating NOT_READY
            // as equivalent to ABSENT, once the rest of the system can handle it.
            sIccId[phoneId] = ICCID_STRING_FOR_NO_SIM;
            updateSubscriptionInfoByIccId(phoneId, false /* updateEmbeddedSubs */);
        } else {
            sIccId[phoneId] = null;
        }
        updateSubscriptionInfoByIccId(phoneId, false /* updateEmbeddedSubs */);

        broadcastSimStateChanged(phoneId, IccCardConstants.INTENT_VALUE_ICC_NOT_READY,
                null);
+2 −2
Original line number Diff line number Diff line
@@ -246,8 +246,8 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest {
                mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE);
        verify(mConfigManager, never()).updateConfigForPhoneId(eq(FAKE_PHONE_ID_1),
                eq(IccCardConstants.INTENT_VALUE_ICC_NOT_READY));
        verify(mSubscriptionController).clearSubInfoRecord(FAKE_PHONE_ID_1);
        verify(mSubscriptionController).notifySubscriptionInfoChanged();
        verify(mSubscriptionController, never()).clearSubInfoRecord(FAKE_PHONE_ID_1);
        verify(mSubscriptionController, never()).notifySubscriptionInfoChanged();
    }

    @Test