Skip to content

Commit b35a21f

Browse files
Jim MillerAndroid (Google) Code Review
authored andcommitted
Merge "Fix 5602985: Show "Emergency calls only" when device has no SIM." into ics-mr1
2 parents d571317 + 2fcd63b commit b35a21f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,14 @@ private void updateCarrierStateWithSimStatus(State simState) {
481481
break;
482482

483483
case SimMissing:
484+
// Shows "No SIM card | Emergency calls only" on devices that are voice-capable.
485+
// This depends on mPlmn containing the text "Emergency calls only" when the radio
486+
// has some connectivity. Otherwise, it should be null or empty and just show
487+
// "No SIM card"
484488
carrierText = getContext().getText(R.string.lockscreen_missing_sim_message_short);
489+
if (mLockPatternUtils.isEmergencyCallCapable()) {
490+
carrierText = makeCarierString(carrierText, mPlmn);
491+
}
485492
carrierHelpTextId = R.string.lockscreen_missing_sim_instructions_long;
486493
break;
487494

0 commit comments

Comments
 (0)