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

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

Merge "NullPointerException when running monkey test in IccLockSettings"

am: 2c8d826b

Change-Id: I8d54ebc4a699bd57631acc2150662cb923ca0015
parents 98f209c6 2c8d826b
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
    protected int getMetricsCategory() {