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

Commit 50645d4a authored by Karl Rosaen's avatar Karl Rosaen
Browse files

When the sim is missing, show "press menu to unlock or place emergency call"...

When the sim is missing, show "press menu to unlock or place emergency call" on lock screen instead of just "press menu to unlock".

This is to make it clearer to users that they can still place an emergency call using the dialer
even with no SIM card.
parent 23506431
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();
    }

    /**