summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2020-11-07 00:56:55 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-11-07 00:56:55 +0000
commit2e0600f348e182bd18961bb83b598188bc366413 (patch)
treeb00d5c8d74d1b17d3dc4af9456a4091cd571d631
parentc7f2495079700f15148321c0e9ce8040c0aecf80 (diff)
parent92daba9bd42cc66696614243bc3f40f32e9d01e9 (diff)
downloadPackageInstaller-2e0600f348e182bd18961bb83b598188bc366413.tar.gz
DO NOT MERGE: Hide overlays over uninstall confirm dialog am: ffae6d17ca am: 92daba9bd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/PackageInstaller/+/12952101 Change-Id: I775e041ec2eb10517ec63a3280ef068dc366ca60
-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 142e95e67..d2176961d 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>