Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 390811b8 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am b35a21f9: Merge "Fix 5602985: Show "Emergency calls only" when device has no SIM." into ics-mr1

* commit 'b35a21f9':
  Fix 5602985: Show "Emergency calls only" when device has no SIM.
parents d3b98329 b35a21f9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;