commit | 655a7e98de749cc354186fb7ab5183ed33ff6b7d | [log] [tgz] |
---|---|---|
author | Jeff Chang <chengjeff@google.com> | Wed Feb 09 09:07:56 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Feb 09 09:07:56 2022 +0000 |
tree | a616a8a488cd39091d4ec1a1fda7a2cd36839961 | |
parent | e61f6debacb72154f83da17a04a338ea2adda1dc [diff] | |
parent | 9c5c42ad035a493d68669628ed7ac21e6fbed7f9 [diff] |
[RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: 9c5c42ad03 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16743243 Change-Id: I7ddcae3ca03c33905fce0c00e447faf75aee0d18
diff --git a/core/java/com/android/internal/app/HarmfulAppWarningActivity.java b/core/java/com/android/internal/app/HarmfulAppWarningActivity.java index ce2d229..33209e1 100644 --- a/core/java/com/android/internal/app/HarmfulAppWarningActivity.java +++ b/core/java/com/android/internal/app/HarmfulAppWarningActivity.java
@@ -16,6 +16,8 @@ package com.android.internal.app; +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; + import android.content.Context; import android.content.DialogInterface; import android.content.Intent; @@ -27,6 +29,7 @@ import android.util.Log; import android.view.View; import android.widget.TextView; + import com.android.internal.R; /** @@ -48,6 +51,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); final Intent intent = getIntent(); mPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); mTarget = intent.getParcelableExtra(Intent.EXTRA_INTENT);