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

Commit 6b792ce5 authored by Alex Johnston's avatar Alex Johnston Committed by Automerger Merge Worker
Browse files

Add non system overlay flag to InstallCaCertificateWarning am: 02e8f56e am: c745bc42

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16414971

Change-Id: I02c96d91aa737bbe07fe6095be07eda384cc3a17
parents 687bccdd c745bc42
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.settings.security;

import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.annotation.Nullable;
import android.app.Activity;
import android.content.Intent;
@@ -45,6 +47,8 @@ public class InstallCaCertificateWarning extends Activity {
        setTheme(SetupWizardUtils.getTheme(this, getIntent()));
        ThemeHelper.trySetDynamicColor(this);
        setContentView(R.layout.ca_certificate_warning_dialog);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);

        final GlifLayout layout = findViewById(R.id.setup_wizard_layout);
        layout.setHeaderText(R.string.ca_certificate_warning_title);

@@ -57,6 +61,7 @@ public class InstallCaCertificateWarning extends Activity {
                        .setTheme(R.style.SudGlifButton_Secondary)
                        .build()
        );
        mixin.getSecondaryButtonView().setFilterTouchesWhenObscured(true);

        mixin.setPrimaryButton(
                new FooterButton.Builder(this)
@@ -66,6 +71,7 @@ public class InstallCaCertificateWarning extends Activity {
                        .setTheme(R.style.SudGlifButton_Primary)
                        .build()
        );
        mixin.getPrimaryButtonView().setFilterTouchesWhenObscured(true);
    }

    private View.OnClickListener installCaCertificate() {