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

Commit f203a66a authored by Grace Jia's avatar Grace Jia
Browse files

Close and disable SIM lock dialogs when SIM removed from device.

Bug: 157102550
Test: Manually open the PIN toggle dialog and PIN edit dialog, then
remove SIM from DUT

Change-Id: Ied875909e9cbcb1cad1ae045578747a0a5810491
parent cb8be1de
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -301,6 +301,9 @@ public class IccLockSettings extends SettingsPreferenceFragment

        if (mPinDialog != null) {
            mPinDialog.setEnabled(sir != null);
            if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
                mPinDialog.getDialog().dismiss();
            }
        }
        if (mPinToggle != null) {
            mPinToggle.setEnabled(sir != null);