commit | 8e5e16de15e06c8a40ba7e7fabf7365d0e11abef | [log] [tgz] |
---|---|---|
author | Jakub Pawlowski <jpawlowski@google.com> | Mon Jun 08 06:26:46 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jun 08 06:26:46 2020 +0000 |
tree | c2a926629ebf963667307c223626700eb3986754 | |
parent | 5520cb90ac7de3f101be5e7f56a27b936c3b358b [diff] | |
parent | a44860c880327bb57ac5ad843ffdc5963a55b9cf [diff] |
Prevent overlay drawing on top of Bluetooth discovery request dialog am: c48d63752a am: e61467cd6c am: a44860c880 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11484059 Change-Id: I62c1f20e1c356284143037088c91c7bc800502bb
diff --git a/src/com/android/settings/bluetooth/RequestPermissionActivity.java b/src/com/android/settings/bluetooth/RequestPermissionActivity.java index 5485406..4446fb6 100644 --- a/src/com/android/settings/bluetooth/RequestPermissionActivity.java +++ b/src/com/android/settings/bluetooth/RequestPermissionActivity.java
@@ -37,6 +37,8 @@ import com.android.settings.R; import com.android.settingslib.bluetooth.BluetoothDiscoverableTimeoutReceiver; +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; + /** * RequestPermissionActivity asks the user whether to enable discovery. This is * usually started by an application wanted to start bluetooth and or discovery @@ -72,6 +74,8 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); + setResult(Activity.RESULT_CANCELED); // Note: initializes mBluetoothAdapter and returns true on error