summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2020-11-07 00:41:39 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-11-07 00:41:39 +0000
commit92daba9bd42cc66696614243bc3f40f32e9d01e9 (patch)
tree84f495aed57cee8c7239bf16326455c09a056a55
parent28ac5cd6aae98ba88ac930c36fd0bbebe335ee46 (diff)
parentffae6d17ca531d4ca60411f88b5e7d79ebf9a610 (diff)
downloadPackageInstaller-92daba9bd42cc66696614243bc3f40f32e9d01e9.tar.gz
DO NOT MERGE: Hide overlays over uninstall confirm dialog am: ffae6d17ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/PackageInstaller/+/12952101 Change-Id: I424adb457fe81e1aa5744165155768edaf4f8d3b
-rwxr-xr-xsrc/com/android/packageinstaller/UninstallerActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/packageinstaller/UninstallerActivity.java b/src/com/android/packageinstaller/UninstallerActivity.java
index edcc80657..0e9af0c57 100755
--- a/src/com/android/packageinstaller/UninstallerActivity.java
+++ b/src/com/android/packageinstaller/UninstallerActivity.java
@@ -16,6 +16,8 @@
*/
package com.android.packageinstaller;
+import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
+
import android.app.Activity;
import android.app.ActivityThread;
import android.app.DialogFragment;
@@ -78,6 +80,8 @@ public class UninstallerActivity extends Activity {
@Override
public void onCreate(Bundle icicle) {
+ getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
+
super.onCreate(icicle);
// Get intent information.
// We expect an intent with URI of the form package://<packageName>#<className>