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

Commit ec5879f6 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 5165 into donut

* changes:
  When the sim is missing, show "press menu to unlock or place emergency call" on lock screen instead of just "press menu to unlock".
parents a7c176c3 50645d4a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -227,7 +227,8 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM

    private void refreshUnlockIntructions() {
        if (mLockPatternUtils.isLockPatternEnabled()
                || mUpdateMonitor.getSimState() == IccCard.State.PIN_REQUIRED) {
                || mUpdateMonitor.getSimState() == IccCard.State.PIN_REQUIRED
                || mUpdateMonitor.getSimState() == IccCard.State.ABSENT) {
            mLockInstructions.setText(R.string.lockscreen_instructions_when_pattern_enabled);
        } else {
            mLockInstructions.setText(R.string.lockscreen_instructions_when_pattern_disabled);
@@ -327,6 +328,7 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM
    public void onSimStateChanged(IccCard.State simState) {
        mSimOk = isSimOk(simState);
        refreshViewsWRTSimOk();
        refreshUnlockIntructions();
    }

    /**