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

Commit 578700af authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

Merge "Settings: disable Lock SIM card till response is received"

parents c46455ac 48c03831
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -348,7 +348,8 @@ public class IccLockSettings extends PreferenceActivity
        // reset dialog state. Else inject error message and show dialog again.
        Message callback = Message.obtain(mHandler, MSG_ENABLE_ICC_PIN_COMPLETE);
        mPhone.getIccCard().setIccLockEnabled(mToState, mPin, callback);

        // Disable the setting till the response is received.
        mPinToggle.setEnabled(false);
    }

    private void iccLockChanged(boolean success) {
@@ -358,6 +359,7 @@ public class IccLockSettings extends PreferenceActivity
            Toast.makeText(this, mRes.getString(R.string.sim_lock_failed), Toast.LENGTH_SHORT)
                    .show();
        }
        mPinToggle.setEnabled(true);
        resetDialogState();
    }