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

Commit feaac369 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't allow non-system window overlays for bug report warnings." into sc-dev am: f477c8fb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14518596

Change-Id: I460761cef660db32e0c939d548d9b0a808086e7c
parents 65506c66 f477c8fb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.WindowManager;
import android.widget.CheckBox;

import com.android.internal.app.AlertActivity;
@@ -47,6 +48,10 @@ public class BugreportWarningActivity extends AlertActivity
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        // Don't allow overlay windows.
        getWindow().addSystemFlags(
                WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);

        mSendIntent = getIntent().getParcelableExtra(Intent.EXTRA_INTENT);

        // We need to touch the extras to unpack them so they get migrated to