packages/apps/Settings
Revision | 90cede7bfa6b72979ed453deed8118885ee3dcde (tree) |
---|---|
Time | 2020-12-10 09:10:59 |
Author | android-build-team Robot <android-build-team-robot@goog...> |
Commiter | android-build-team Robot |
Snap for 7022639 from 79bf00aac31842e6a4f1e8d01c900d59efcf9542 to rvc-d2-release
Change-Id: I0b71b94e89765f1b881f9b260d0152a59a073388
@@ -34,6 +34,8 @@ import com.android.internal.app.AlertActivity; | ||
34 | 34 | import com.android.internal.app.AlertController; |
35 | 35 | import com.android.settings.R; |
36 | 36 | |
37 | +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; | |
38 | + | |
37 | 39 | /** |
38 | 40 | * BluetoothPermissionActivity shows a dialog for accepting incoming |
39 | 41 | * profile connection request from untrusted devices. |
@@ -76,6 +78,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements | ||
76 | 78 | protected void onCreate(Bundle savedInstanceState) { |
77 | 79 | super.onCreate(savedInstanceState); |
78 | 80 | |
81 | + getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); | |
79 | 82 | Intent i = getIntent(); |
80 | 83 | String action = i.getAction(); |
81 | 84 | if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) { |
@@ -131,6 +131,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { | ||
131 | 131 | // "Clear All Notifications" button |
132 | 132 | |
133 | 133 | Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); |
134 | + deleteIntent.setPackage("com.android.bluetooth"); | |
134 | 135 | deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); |
135 | 136 | deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT, |
136 | 137 | BluetoothDevice.CONNECTION_ACCESS_NO); |