diff options
author | Beverly <beverlyt@google.com> | 2020-12-02 14:36:13 -0500 |
---|---|---|
committer | Beverly Tai <beverlyt@google.com> | 2020-12-03 16:27:57 +0000 |
commit | caa8d7ffa0e7516b1e03e5e44f8d99759898d06b (patch) | |
tree | f08395221e809f447fee36175e0e333af0b17df3 /packages/SystemUI/src | |
parent | fe2da4e99ba37b56e97cedee47258344200452bb (diff) |
Do not allow non-system dialogs on UsbConfirmAct
Test: manual
Bug: 173421110
Change-Id: Icc81a8bf4d85969756a002ee7880cc6c81ecd7a1
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/UsbConfirmActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/UsbConfirmActivity.java b/packages/SystemUI/src/com/android/systemui/usb/UsbConfirmActivity.java index 286b7c049fc7..21d700e41a40 100644 --- a/packages/SystemUI/src/com/android/systemui/usb/UsbConfirmActivity.java +++ b/packages/SystemUI/src/com/android/systemui/usb/UsbConfirmActivity.java @@ -35,6 +35,8 @@ import android.os.UserHandle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; +import android.view.Window; +import android.view.WindowManager; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.TextView; @@ -58,6 +60,9 @@ public class UsbConfirmActivity extends AlertActivity @Override public void onCreate(Bundle icicle) { + getWindow().addSystemFlags( + WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); + super.onCreate(icicle); Intent intent = getIntent(); |