Call finish() when enrollment loses focus
Bug: 134971919 Test: Entering keyguard on any enrollment screen finishes enrollment now Test: Going back/forward works Change-Id: I2c80a5586c10fa3feb780a5eadfe203abed52dea
This commit is contained in:
@@ -77,6 +77,16 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
|
||||
if (!isChangingConfigurations() && !mConfirmingCredentials && !mNextClicked
|
||||
&& !WizardManagerHelper.isAnySetupWizard(getIntent())) {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isDisabledByAdmin() {
|
||||
return RestrictedLockUtilsInternal.checkIfKeyguardFeaturesDisabled(
|
||||
|
Reference in New Issue
Block a user