Skip to content

Commit 784eb36

Browse files
author
Wink Saville
committed
Telephony: Fix NV ready state
Don't trigger RuimRecords onReady so that it doesn't overwrite mccmnc property value set by CdmaPhone in NV case. Bug: 6153667 Change-Id: I2f25f6a69deecd085f11dbe1dbf752c2fd51cecb
1 parent 63c115c commit 784eb36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

telephony/java/com/android/internal/telephony/IccCard.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,9 @@ private void handleIccCardStatus(IccCardStatus newCardStatus) {
580580
mHandler.sendMessage(mHandler.obtainMessage(EVENT_CARD_ADDED, null));
581581
}
582582

583-
if (oldState != State.READY && newState == State.READY) {
583+
// Call onReady only when SIM or RUIM card becomes ready (not NV)
584+
if (oldState != State.READY && newState == State.READY &&
585+
(is3gpp || isSubscriptionFromIccCard)) {
584586
mIccFileHandler.setAid(getAid());
585587
mIccRecords.onReady();
586588
}

0 commit comments

Comments
 (0)