diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2020-11-19 13:31:08 +0100 |
---|---|---|
committer | Jakub Pawlowski <jpawlowski@google.com> | 2020-11-19 13:47:53 +0100 |
commit | 4f7edf692f4e8a10521379aaae8c1d52ab275d72 (patch) | |
tree | 5764e49eecdac35218e2f450dba18de39bc8e3b7 /src/com/android/settings/bluetooth/BluetoothPermissionActivity.java | |
parent | 5181948f0899437c367339315721b48fa63976fd (diff) | |
download | packages_apps_Settings-4f7edf692f4e8a10521379aaae8c1d52ab275d72.tar.gz packages_apps_Settings-4f7edf692f4e8a10521379aaae8c1d52ab275d72.tar.bz2 packages_apps_Settings-4f7edf692f4e8a10521379aaae8c1d52ab275d72.zip |
Prevent overlay drawing on top of Bluetooth activity dialog
Bug: 168504491
Change-Id: I04ebe580db2b299af2bd5e44e0b0f20bd42f8535
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothPermissionActivity.java')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothPermissionActivity.java | 3 |
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 4dd9a4042e..be383dc02b 100644 --- a/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java +++ b/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java @@ -34,6 +34,8 @@ import com.android.internal.app.AlertActivity; import com.android.internal.app.AlertController; import com.android.settings.R; +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; + /** * BluetoothPermissionActivity shows a dialog for accepting incoming * profile connection request from untrusted devices. @@ -76,6 +78,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); Intent i = getIntent(); String action = i.getAction(); if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) { |