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

Commit ecfbe176 authored by xudiwen's avatar xudiwen Committed by android-build-merger
Browse files

Merge "NullPointerException when running monkey test in IccLockSettings" am:...

Merge "NullPointerException when running monkey test in IccLockSettings" am: 2c8d826b am: 957c4d77
am: 0ff0487b

Change-Id: I22cd436533a745a415a49122fe2469ef9a96cdc9
parents 42790ccd 0ff0487b
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -247,13 +247,17 @@ public class IccLockSettings extends SettingsPreferenceFragment
    }

    private void updatePreferences() {
        if (mPinDialog != null) {
            mPinDialog.setEnabled(mPhone != null);
        }
        if (mPinToggle != null) {
            mPinToggle.setEnabled(mPhone != null);

            if (mPhone != null) {
                mPinToggle.setChecked(mPhone.getIccCard().getIccLockEnabled());
            }
        }
    }

    @Override
    public int getMetricsCategory() {