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

Commit ab597936 authored by Joe Bolinger's avatar Joe Bolinger Committed by Automerger Merge Worker
Browse files

Prevent finishing early on single sensor devices. am: 47e8ddbd

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15162645

Change-Id: I3e36919892194b12ed4d3567715c87fcad8d5065
parents df329ea5 47e8ddbd
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -242,6 +242,7 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
        // This will need to be updated if the device has sensors other than BIOMETRIC_STRONG
        if (!setupWizard && authenticators == BiometricManager.Authenticators.DEVICE_CREDENTIAL) {
            launchCredentialOnlyEnroll();
            finish();
        } else if (canUseFace && canUseFingerprint) {
            if (mParentalOptionsRequired && mGkPwHandle != null) {
                launchFaceAndFingerprintEnroll();
@@ -405,22 +406,6 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
        super.onApplyThemeResource(theme, newResid, first);
    }

    @Override
    protected void onStop() {
        super.onStop();

        if (mConfirmingCredentials
                || mParentalOptionsRequired
                || mMultiBiometricEnrollHelper != null) {
            return;
        }

        if (!isChangingConfigurations()) {
            Log.d(TAG, "Finishing in onStop");
            finish();
        }
    }

    private void setOrConfirmCredentialsNow() {
        if (!mConfirmingCredentials) {
            mConfirmingCredentials = true;