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

Commit 4641f4b5 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 997b1f74: am 578700af: Merge "Settings: disable Lock SIM card till response is received"

* commit '997b1f74':
  Settings: disable Lock SIM card till response is received
parents d75b776a 997b1f74
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();
    }