diff options
author | Daichi Hirono <hirono@google.com> | 2017-10-27 13:05:13 +0900 |
---|---|---|
committer | Daichi Hirono <hirono@google.com> | 2017-11-01 09:07:52 +0900 |
commit | 3bae0b027feb873cbb430ee1c3e0408e565b69f2 (patch) | |
tree | e4366efe727a3c807421b57e47ad84b12601fe26 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 4f8bd78bfce85bd3d04861f63856c499b5799c37 (diff) |
Sort out various cleanup methods of DragState
DragState has mainly three states.
* just created
* after input intercepters is registered
* after drag start broadcast is sent out
* after drag end/cancel animation is completed
Previously DragState has multiple cleanup methods for each state and
callers need to choose the correct one.
The CL merges the cleanup methods into one 'closeLocked' method so that
callers can always invoke closeLocked, and DragState can take the
responsibility to relelase its relevant resources depends on its
internal state.
Bug: 65564090
Test: android.server.wm.CrossAppDragAndDropTests, manually check the
drag and drop behavior on test app.
Change-Id: I257231073b350726bfcebaf1cdf6a02dc0d4ca39
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions