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

Commit ff01d52d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Change cancel button type to skip for SUW" into qt-r1-dev

parents 53e82612 d98257ba
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)