Skip to content

Commit

Permalink
SystemUI: Show carrier info when SIM is NOT_READY state
Browse files Browse the repository at this point in the history
Since disabling SIM manually is supported on our devices, the SIM will
change to NOT_READY state and show nothing for carrier info.

Show carrier info even when SIM is in NOT_READY state.

Change-Id: I2eca890e57b07fd3fbcabf358ae7fd0032f6adeb
CRs-Fixed: 954746
  • Loading branch information
Shufeng Hou committed Dec 24, 2015
1 parent 02afa0c commit 100f65f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/Keyguard/src/com/android/keyguard/CarrierText.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ private CharSequence getCarrierTextForSimState(IccCardConstants.State simState,
case SimNotReady:
// Null is reserved for denoting missing, in this case we have nothing to display.
carrierText = ""; // nothing to display yet.
if (TelephonyManager.getDefault().isMultiSimEnabled())
carrierText = text;
break;

case NetworkLocked:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@ static SimData fromIntent(Intent intent) {
// This is required because telephony doesn't return to "READY" after
// these state transitions. See bug 7197471.
state = IccCardConstants.State.READY;
} else if (IccCardConstants.INTENT_VALUE_ICC_NOT_READY.equals(stateExtra)
&& TelephonyManager.getDefault().isMultiSimEnabled()) {
state = IccCardConstants.State.NOT_READY;
} else {
state = IccCardConstants.State.UNKNOWN;
}
Expand Down

0 comments on commit 100f65f

Please sign in to comment.