Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ecb13984 authored by nergi's avatar nergi
Browse files

[DnD] Properly cleanup DragDropController in DragDropControllerTests

When deferClose flag was updated to false after the test, it doesn't
fully clean up in some cases.

The idea to set `deferClose=false` is to let `tearDown` clean this up if
`mTarget.dragDropActiveLocked() == true`. However, the definition of
active is not just the presence of dragState. If dragState is present,
but it's closing, it's no longer "active", and hence `closeDragState` is
not executed.

Modify deferClose=false to immediately close dragState.

Bug: 365512241
Test: atest WmTests:DragDropControllerTests
Flag: com.android.window.flags.enable_connected_displays_dnd
Change-Id: Idcbeda929e72a9759a2e3afc103e25a64894ebf5
parent 3e2ffa78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment