Merge "Launch correct enrollment activity from ChooseLock" into qt-dev

This commit is contained in:
Kevin Chyn
2019-04-14 04:03:54 +00:00
committed by Android (Google) Code Review
6 changed files with 61 additions and 17 deletions

View File

@@ -150,7 +150,9 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
if (!mHasPassword) {
// No password registered, launch into enrollment wizard.
launchChooseLock();
} else if (!mLaunchedConfirmLock || mToken == null) {
} else if (mToken == null) {
// It's possible to have a token but mLaunchedConfirmLock == false, since
// ChooseLockGeneric can pass us a token.
launchConfirmLock(getConfirmLockTitleResId(), getChallenge());
}
}