File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
policy/src/com/android/internal/policy/impl Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments