From d4533f1469990582e4a2dd0898429093fe2690c0 Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Tue, 19 Oct 2010 15:15:08 -0700 Subject: Report drag success/fail in the DRAG_ENDED message DragEvent.getResult() returns 'true' if the drop was ultimately accepted; false otherwise. The validity of this datum is only guaranteed when the DragEvent's action verb is ACTION_DRAG_ENDED. Also fixes the drag-start timeout handling (though the offending app is not yet officially declared ANR). Implements bug 3097807 Change-Id: I6908ac628c72ff7d6193d87060d769a559a78d0e --- tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java index 0553f5e..eb0eba2 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java @@ -1093,6 +1093,11 @@ public final class Bridge implements ILayoutBridge { } @SuppressWarnings("unused") + public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { + // pass for now + } + + @SuppressWarnings("unused") public void dragRecipientEntered(IWindow window) throws RemoteException { // pass for now } -- cgit v1.1