packages/apps/Settings
Revisão | c721dc5bad582f4a7399d8f1066c7b2f0a1eef36 (tree) |
---|---|
Hora | 2020-12-09 20:32:56 |
Autor | Jakub Pawlowski <jpawlowski@goog...> |
Commiter | Automerger Merge Worker |
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
@@ -36,6 +36,8 @@ import com.android.settingslib.bluetooth.CachedBluetoothDevice; | ||
36 | 36 | import com.android.settingslib.bluetooth.CachedBluetoothDeviceManager; |
37 | 37 | import com.android.settingslib.bluetooth.LocalBluetoothManager; |
38 | 38 | |
39 | +import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; | |
40 | + | |
39 | 41 | /** |
40 | 42 | * BluetoothPermissionActivity shows a dialog for accepting incoming |
41 | 43 | * profile connection request from untrusted devices. |
@@ -78,6 +80,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements | ||
78 | 80 | protected void onCreate(Bundle savedInstanceState) { |
79 | 81 | super.onCreate(savedInstanceState); |
80 | 82 | |
83 | + getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); | |
81 | 84 | Intent i = getIntent(); |
82 | 85 | String action = i.getAction(); |
83 | 86 | if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) { |