summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commitcaa8d7ffa0e7516b1e03e5e44f8d99759898d06b (patch)
treef08395221e809f447fee36175e0e333af0b17df3
parentfe2da4e99ba37b56e97cedee47258344200452bb (diff)
Do not allow non-system dialogs on UsbConfirmAct
Test: manual Bug: 173421110 Change-Id: Icc81a8bf4d85969756a002ee7880cc6c81ecd7a1
-rw-r--r--packages/SystemUI/src/com/android/systemui/usb/UsbConfirmActivity.java5
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();