commit | 30b0dc1896abc67a970b61ebfd420275a31c1e18 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Tue Mar 07 15:37:16 2017 -0800 |
committer | Ben Lin <linben@google.com> | Fri Mar 10 14:25:22 2017 -0800 |
tree | 292846bd8e828474c55c7cb2ef949c226d060e80 | |
parent | 15ed8b2c8a943d9aa3d01662b3052f8989ca3a09 [diff] |
Fix a bug where dropping on Root never works. DragEvent gets recycled, so by passing a DragEvent reference directly to ActionHandler#dropOn, by the time the callback occurs, DragEvent is updated to ACTION_DRAG_ENDED. ACTION_DRAG_ENDED events have no ClipData and no localState, so the file operation never will occur. Also added tests that involved ... refactoring lots of things. Change-Id: I87daf1a4ec4e536701e03fd6dc53fc55829e5e51