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

Commit 794cbd70 authored by PauloftheWest's avatar PauloftheWest Committed by Android (Google) Code Review
Browse files

Merge "Changed SIM lock toggle to a switch" into lmp-mr1-dev

parents 003aee5f ac5c081a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
        android:title="@string/sim_lock_settings">

    <CheckBoxPreference
    <SwitchPreference
            android:key="sim_toggle"
            android:title="@string/sim_pin_toggle"
            android:summaryOn="@string/sim_lock_on"
+3 −3
Original line number Diff line number Diff line
@@ -25,10 +25,10 @@ import android.os.AsyncResult;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.preference.CheckBoxPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;
import android.preference.SwitchPreference;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
@@ -106,7 +106,7 @@ public class IccLockSettings extends PreferenceActivity
    private Phone mPhone;

    private EditPinPreference mPinDialog;
    private CheckBoxPreference mPinToggle;
    private SwitchPreference mPinToggle;

    private Resources mRes;

@@ -173,7 +173,7 @@ public class IccLockSettings extends PreferenceActivity
        addPreferencesFromResource(R.xml.sim_lock_settings);

        mPinDialog = (EditPinPreference) findPreference(PIN_DIALOG);
        mPinToggle = (CheckBoxPreference) findPreference(PIN_TOGGLE);
        mPinToggle = (SwitchPreference) findPreference(PIN_TOGGLE);
        if (savedInstanceState != null && savedInstanceState.containsKey(DIALOG_STATE)) {
            mDialogState = savedInstanceState.getInt(DIALOG_STATE);
            mPin = savedInstanceState.getString(DIALOG_PIN);