Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 448440b8 authored by joshmccloskey's avatar joshmccloskey Committed by android-build-team Robot
Browse files

Change cancel button type to skip for SUW

Test: Verified in SUW that enrollment will skip after
tapping the cancel button in the Introduction.
Fixes: 140702414

Change-Id: I9d9da0ff6d10b6ee6929cb52ff4a03a684f43d17
(cherry picked from commit d98257ba)
parent 781e1a7f
Loading
Loading
Loading
Loading
+19 −9
Original line number Diff line number Diff line
@@ -47,7 +47,16 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
        mFaceManager = Utils.getFaceManagerOrNull(this);

        mFooterBarMixin = getLayout().getMixin(FooterBarMixin.class);

        if (WizardManagerHelper.isAnySetupWizard(getIntent())) {
            mFooterBarMixin.setSecondaryButton(
                    new FooterButton.Builder(this)
                            .setText(R.string.security_settings_face_enroll_introduction_no_thanks)
                            .setListener(this::onSkipButtonClick)
                            .setButtonType(FooterButton.ButtonType.SKIP)
                            .setTheme(R.style.SudGlifButton_Secondary)
                            .build()
            );
        } else {
            mFooterBarMixin.setSecondaryButton(
                    new FooterButton.Builder(this)
                            .setText(R.string.security_settings_face_enroll_introduction_no_thanks)
@@ -56,6 +65,7 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
                            .setTheme(R.style.SudGlifButton_Secondary)
                            .build()
            );
        }

        mFooterBarMixin.setPrimaryButton(
                new FooterButton.Builder(this)