• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


コミットメタ情報

リビジョン0c870fd7df49af5b4d5bca7176e26a2e187f2a1f (tree)
日時2020-11-17 07:47:34
作者Eugene Susla <eugenesusla@goog...>
コミッターSterling Huber

ログメッセージ

RESTRICT AUTOMERGE
Prevent non-system overlays from showing over notification listener consent dialog

Bug: 170731783
Test: use a visible overlay, ensure it's gone when notification consent is open
Change-Id: I58e017982f385ffc0d0ba2174512490b1d83dd36

変更サマリ

差分

--- a/src/com/android/settings/notification/NotificationAccessConfirmationActivity.java
+++ b/src/com/android/settings/notification/NotificationAccessConfirmationActivity.java
@@ -17,6 +17,8 @@
1717
1818 package com.android.settings.notification;
1919
20+import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
21+
2022 import static com.android.internal.notification.NotificationAccessConfirmationActivityContract
2123 .EXTRA_COMPONENT_NAME;
2224 import static com.android.internal.notification.NotificationAccessConfirmationActivityContract
@@ -58,6 +60,8 @@ public class NotificationAccessConfirmationActivity extends Activity
5860 protected void onCreate(@Nullable Bundle savedInstanceState) {
5961 super.onCreate(savedInstanceState);
6062
63+ getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
64+
6165 mNm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
6266
6367 mComponentName = getIntent().getParcelableExtra(EXTRA_COMPONENT_NAME);