Show Choose/ConfirmLock before showing BiometricEnrollIntroduction
Skip button is now shown when ChooseLock is launched by BiometricEnroll, otherwise users are forced to use passwords (maybe good thing?) Bug: 111548033 Test: Pin/pattern/pass must be set/confirmed before enrollment Test: Able to enroll FP in SUW and Settings Change-Id: Ic4bbeb539e4bf01c1c402dec308943292b43406d
This commit is contained in:
@@ -164,23 +164,6 @@ public class SetupChooseLockPatternTest {
|
||||
assertThat(findFragment(mActivity).mChosenPattern).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void skipButton_shouldNotBeVisible_duringFingerprintFlow() {
|
||||
final Intent intent =
|
||||
SetupChooseLockPattern.modifyIntentForSetup(
|
||||
application,
|
||||
new IntentBuilder(application)
|
||||
.setUserId(UserHandle.myUserId())
|
||||
.setForFingerprint(true)
|
||||
.build());
|
||||
|
||||
mActivity = ActivityController.of(new SetupChooseLockPattern(), intent).setup().get();
|
||||
Button skipButton = mActivity.findViewById(R.id.skip_button);
|
||||
|
||||
assertThat(skipButton).isNotNull();
|
||||
assertThat(skipButton.getVisibility()).isEqualTo(View.GONE);
|
||||
}
|
||||
|
||||
private ChooseLockPatternFragment findFragment(FragmentActivity activity) {
|
||||
return (ChooseLockPatternFragment)
|
||||
activity.getSupportFragmentManager().findFragmentById(R.id.main_content);
|
||||
|
Reference in New Issue
Block a user