Snap for 7022639 from 79bf00aac3
to rvc-qpr2-release
Change-Id: I2427a4015d222a773083e64ffd34637fba15b3bd
This commit is contained in:
@@ -34,6 +34,8 @@ import com.android.internal.app.AlertActivity;
|
|||||||
import com.android.internal.app.AlertController;
|
import com.android.internal.app.AlertController;
|
||||||
import com.android.settings.R;
|
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
|
* BluetoothPermissionActivity shows a dialog for accepting incoming
|
||||||
* profile connection request from untrusted devices.
|
* profile connection request from untrusted devices.
|
||||||
@@ -76,6 +78,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
String action = i.getAction();
|
String action = i.getAction();
|
||||||
if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {
|
if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {
|
||||||
|
@@ -131,6 +131,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
|
|||||||
// "Clear All Notifications" button
|
// "Clear All Notifications" button
|
||||||
|
|
||||||
Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY);
|
Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY);
|
||||||
|
deleteIntent.setPackage("com.android.bluetooth");
|
||||||
deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
|
deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
|
||||||
deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
|
deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
|
||||||
BluetoothDevice.CONNECTION_ACCESS_NO);
|
BluetoothDevice.CONNECTION_ACCESS_NO);
|
||||||
|
Reference in New Issue
Block a user