• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisãoc721dc5bad582f4a7399d8f1066c7b2f0a1eef36 (tree)
Hora2020-12-09 20:32:56
AutorJakub Pawlowski <jpawlowski@goog...>
CommiterAutomerger Merge Worker

Mensagem de Log

Prevent overlay drawing on top of Bluetooth activity dialog am: b29c036522

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13090436

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I956e8906633af45f12617dabbec4e060c14502f2

Mudança Sumário

Diff

--- 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;
3636 import com.android.settingslib.bluetooth.CachedBluetoothDeviceManager;
3737 import com.android.settingslib.bluetooth.LocalBluetoothManager;
3838
39+import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
40+
3941 /**
4042 * BluetoothPermissionActivity shows a dialog for accepting incoming
4143 * profile connection request from untrusted devices.
@@ -78,6 +80,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
7880 protected void onCreate(Bundle savedInstanceState) {
7981 super.onCreate(savedInstanceState);
8082
83+ getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
8184 Intent i = getIntent();
8285 String action = i.getAction();
8386 if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {