summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2020-11-19 13:31:08 +0100
committerHuizi Yang <yanghuiz@google.com>2020-12-09 15:53:25 -0800
commit5caaad91b72dc95fb24ae6e1f7169921e65ee758 (patch)
treed9c84a5fc51cd3954187ab756f1a2eed897c1327
parent4396440301c0ff982e3ba702227801d6c9018c56 (diff)
downloadSettings-5caaad91b72dc95fb24ae6e1f7169921e65ee758.tar.gz
Prevent overlay drawing on top of Bluetooth activity dialogandroid-security-9.0.0_r66android-security-9.0.0_r65
Bug: 168504491 Merged-In: I04ebe580db2b299af2bd5e44e0b0f20bd42f8535 Change-Id: I04ebe580db2b299af2bd5e44e0b0f20bd42f8535 (cherry picked from commit b29c03652204239319dc75798dfdfd2f24454a9e)
-rw-r--r--src/com/android/settings/bluetooth/BluetoothPermissionActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java b/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java
index 1ff1fcef01d..44d2130e0ec 100644
--- a/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java
+++ b/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java
@@ -36,6 +36,8 @@ import com.android.settingslib.bluetooth.CachedBluetoothDevice;
import com.android.settingslib.bluetooth.CachedBluetoothDeviceManager;
import com.android.settingslib.bluetooth.LocalBluetoothManager;
+import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
+
/**
* BluetoothPermissionActivity shows a dialog for accepting incoming
* profile connection request from untrusted devices.
@@ -78,6 +80,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
Intent i = getIntent();
String action = i.getAction();
if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {