Framework drag driver now sends new event type - exited window.
When drag exits Launcher window (for example, goes to Shelf) launcher doesn't get notified and thinks the drag is still over it. For example if there is a moved shaking icon in Hotseat, it will keep shaking. Fixing this. Bug: 22028725 Change-Id: Ie57572a57a324d426c9f6e57dc0bba56630e92df
This commit is contained in:
1 parent
9430ff23c8
commit
ceed3b87dc
2 files changed
+10
No files matched your search
@@ -32,6 +32,7 @@ public abstract class DragDriver {
|
||||
|
||||
public interface EventListener {
|
||||
void onDriverDragMove(float x, float y);
|
||||
void onDriverDragExitWindow();
|
||||
void onDriverDragEnd(float x, float y, DropTarget dropTargetOverride);
|
||||
void onDriverDragCancel();
|
||||
}
|
||||
@@ -165,6 +166,7 @@ class SystemDragDriver extends DragDriver {
|
||||
return true;
|
||||
|
||||
case DragEvent.ACTION_DRAG_EXITED:
|
||||
mEventListener.onDriverDragExitWindow();
|
||||
return true;
|
||||
|
||||
case DragEvent.ACTION_DRAG_ENDED:
|
||||
|
||||
Reference in new issue
Block a user