packages/apps/Settings
Revisão | f43af46d1d834af34c0bdbdf0c2e4e596546668d (tree) |
---|---|
Hora | 2021-04-06 21:51:12 |
Autor | TreeHugger Robot <treehugger-gerrit@goog...> |
Commiter | Android (Google) Code Review |
Merge "Hide non-system overlay window on ActivityPicker" into oc-mr1-dev
@@ -16,6 +16,8 @@ | ||
16 | 16 | |
17 | 17 | package com.android.settings; |
18 | 18 | |
19 | +import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; | |
20 | + | |
19 | 21 | import android.app.Activity; |
20 | 22 | import android.content.Context; |
21 | 23 | import android.content.DialogInterface; |
@@ -71,6 +73,8 @@ public class ActivityPicker extends AlertActivity implements | ||
71 | 73 | @Override |
72 | 74 | protected void onCreate(Bundle savedInstanceState) { |
73 | 75 | super.onCreate(savedInstanceState); |
76 | + | |
77 | + getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); | |
74 | 78 | |
75 | 79 | final Intent intent = getIntent(); |
76 | 80 |