commit | 138dbb86cc2fceb7d2ec0c53f71d4ce39daa7b3f | [log] [tgz] |
---|---|---|
author | Jakub Pawlowski <jpawlowski@google.com> | Mon Jun 22 19:03:01 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jun 22 19:03:01 2020 +0000 |
tree | 1f443c83b82bf468977161a8918f4514e4833831 | |
parent | 9c6ab4cbd39debfce9dd0bc4de2e6e75c1530b89 [diff] | |
parent | f3afef8419de2910b03c3670ca25e63ac3c08407 [diff] |
Prevent overlay drawing on top of Bluetooth pairing dialog am: f3afef8419 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11953485 Change-Id: I41bd60685dc58028a328c041ca4532b42881cec7
diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java index 22cb3a6..316f541 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
@@ -26,6 +26,8 @@ import android.os.Bundle; import android.support.annotation.VisibleForTesting; +import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; + /** * BluetoothPairingDialog asks the user to enter a PIN / Passkey / simple confirmation * for pairing with a remote Bluetooth device. It is an activity that appears as a dialog. @@ -63,6 +65,8 @@ @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); + + getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); Intent intent = getIntent(); mBluetoothPairingController = new BluetoothPairingController(intent, this); // build the dialog fragment