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

Commit bcf91ee6 authored by Meng Wang's avatar Meng Wang
Browse files

When erasing an eSIM, verify the device screen PIN lock if one is set.

SIM PIN lock existence isn't checked anymore.

Bug: 335672518
Test: b/335672518#comment6
Merged-In: Iff40c1fb9a2463311768d24d09dfc3aeeee128f9
Change-Id: Iff40c1fb9a2463311768d24d09dfc3aeeee128f9
parent 4f454b43
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ import androidx.fragment.app.FragmentManager;
import com.android.settings.R;
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
import com.android.settings.system.ResetDashboardFragment;
import com.android.settings.wifi.dpp.WifiDppUtils;
import com.android.settings.network.telephony.MobileNetworkUtils;

public class EraseEuiccDataDialogFragment extends InstrumentedDialogFragment implements
        DialogInterface.OnClickListener {
@@ -78,7 +78,7 @@ public class EraseEuiccDataDialogFragment extends InstrumentedDialogFragment imp

        if (which == DialogInterface.BUTTON_POSITIVE) {
            Context context = getContext();
            WifiDppUtils.showLockScreen(context, () -> runAsyncWipe(context));
            MobileNetworkUtils.showLockScreen(context, () -> runAsyncWipe(context));
        }
    }