• 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

Révision90cede7bfa6b72979ed453deed8118885ee3dcde (tree)
l'heure2020-12-10 09:10:59
Auteurandroid-build-team Robot <android-build-team-robot@goog...>
Commiterandroid-build-team Robot

Message de Log

Snap for 7022639 from 79bf00aac31842e6a4f1e8d01c900d59efcf9542 to rvc-d2-release

Change-Id: I0b71b94e89765f1b881f9b260d0152a59a073388

Change Summary

Modification

--- 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;
3434 import com.android.internal.app.AlertController;
3535 import com.android.settings.R;
3636
37+import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
38+
3739 /**
3840 * BluetoothPermissionActivity shows a dialog for accepting incoming
3941 * profile connection request from untrusted devices.
@@ -76,6 +78,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
7678 protected void onCreate(Bundle savedInstanceState) {
7779 super.onCreate(savedInstanceState);
7880
81+ getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
7982 Intent i = getIntent();
8083 String action = i.getAction();
8184 if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {
--- a/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java
+++ b/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java
@@ -131,6 +131,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
131131 // "Clear All Notifications" button
132132
133133 Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY);
134+ deleteIntent.setPackage("com.android.bluetooth");
134135 deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
135136 deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
136137 BluetoothDevice.CONNECTION_ACCESS_NO);