commit | 4f2a4c20365b885ba121e5253a6f774b03f79a29 | [log] [tgz] |
---|---|---|
author | Arc Wang <arcwang@google.com> | Thu Apr 07 20:33:29 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Apr 07 20:33:29 2022 +0000 |
tree | a964411c8b2f5f08e3f99cc89462183868bcab56 | |
parent | 62694fefcb0767b80a607cef952de3c4d6f5eb64 [diff] | |
parent | fcf0584f93ec0b6d4a189bf4abfdfc2f987c07db [diff] |
Hide non-system overlay window on ActivityPicker am: c55b5b54d2 am: fcf0584f93 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17628098 Change-Id: I385f1718bdc0810db374edff607a5d088caffa52 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/settings/ActivityPicker.java b/src/com/android/settings/ActivityPicker.java index ae61944..f75ce37 100644 --- a/src/com/android/settings/ActivityPicker.java +++ b/src/com/android/settings/ActivityPicker.java
@@ -16,6 +16,8 @@ package com.android.settings; +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; + import android.app.Activity; import android.content.Context; import android.content.DialogInterface; @@ -71,6 +73,8 @@ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + + getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); final Intent intent = getIntent();