summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java
index a7da96e..22b2460 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java
@@ -481,7 +481,14 @@ class KeyguardStatusViewManager implements OnClickListener {
break;
case SimMissing:
+ // Shows "No SIM card | Emergency calls only" on devices that are voice-capable.
+ // This depends on mPlmn containing the text "Emergency calls only" when the radio
+ // has some connectivity. Otherwise, it should be null or empty and just show
+ // "No SIM card"
carrierText = getContext().getText(R.string.lockscreen_missing_sim_message_short);
+ if (mLockPatternUtils.isEmergencyCallCapable()) {
+ carrierText = makeCarierString(carrierText, mPlmn);
+ }
carrierHelpTextId = R.string.lockscreen_missing_sim_instructions_long;
break;