Prevent finishing early on single sensor devices. am: 47e8ddbdb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15162645 Change-Id: I37dfd3cd27fb0952db602a60663b83b911e616ba
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user