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

Commit 0c6e18f2 authored by Jim Miller's avatar Jim Miller
Browse files

Don't launch ConfirmDeviceCredentials multiple times.

Fixes bug 18724944

Change-Id: Ifd93b1632f120a2d17136b3100e2563fbb45b9a5
parent 4dd637a0
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -58,6 +58,8 @@ public class ConfirmDeviceCredentialActivity extends Activity {
        String title = intent.getStringExtra(KeyguardManager.EXTRA_TITLE);
        String details = intent.getStringExtra(KeyguardManager.EXTRA_DESCRIPTION);

        // Ignore rotates and ensure we only launch this once
        if (savedInstanceState == null) {
            ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(this);
            if (!helper.launchConfirmationActivity(0 /* request code */, null /* title */, title,
                    details, false /* returnCredentials */, true /* isExternal */)) {
@@ -66,6 +68,7 @@ public class ConfirmDeviceCredentialActivity extends Activity {
                finish();
            }
        }
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {