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

Commit e94e44b9 authored by oli's avatar oli
Browse files

Update CA Cert installer for expressive

Bug: 413325509
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Test: visual

Change-Id: Id7cbfff04f636b82267d7c383cff52e1dd7c19d6
parent eba6276a
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -46,9 +46,15 @@ public class InstallCaCertificateWarning extends Activity {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (ThemeHelper.shouldApplyGlifExpressiveStyle(this)) {
            if (!ThemeHelper.trySetSuwTheme(this)) {
                setTheme(ThemeHelper.getSuwDefaultTheme(getApplicationContext()));
                ThemeHelper.trySetDynamicColor(this);
            }
        } else {
            setTheme(SetupWizardUtils.getTheme(this, getIntent()));
            ThemeHelper.trySetDynamicColor(this);
        }
        setContentView(R.layout.ca_certificate_warning_dialog);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);

@@ -60,7 +66,7 @@ public class InstallCaCertificateWarning extends Activity {
                new FooterButton.Builder(this)
                        .setText(R.string.certificate_warning_install_anyway)
                        .setListener(installCaCertificate())
                        .setButtonType(FooterButton.ButtonType.OTHER)
                        .setButtonType(FooterButton.ButtonType.NEXT)
                        .setTheme(com.google.android.setupdesign.R.style.SudGlifButton_Secondary)
                        .build()
        );
@@ -70,7 +76,7 @@ public class InstallCaCertificateWarning extends Activity {
                new FooterButton.Builder(this)
                        .setText(R.string.certificate_warning_dont_install)
                        .setListener(returnToInstallCertificateFromStorage())
                        .setButtonType(FooterButton.ButtonType.NEXT)
                        .setButtonType(FooterButton.ButtonType.STOP)
                        .setTheme(com.google.android.setupdesign.R.style.SudGlifButton_Primary)
                        .build()
        );