Merge "fingerprint settings: pass auth token to FPEnroll"

This commit is contained in:
Andres Morales
2015-04-15 20:50:44 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -383,7 +383,11 @@ public class FingerprintEnroll extends SettingsActivity {
mContentView.findViewById(buttons[i]).setOnClickListener(this);
}
LockPatternUtils utils = new LockPatternUtils(activity);
if (mToken == null) {
mToken = getActivity().getIntent().getByteArrayExtra(
ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN);
}
if (mToken == null) {
// need to choose or confirm lock
updateStage(Stage.EnrollingOnboard);