summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Tate <ctate@google.com>2010-10-19 15:15:08 -0700
committerChris Tate <ctate@google.com>2010-10-21 14:25:06 -0700
commitd4533f1469990582e4a2dd0898429093fe2690c0 (patch)
tree7ca94c99e6e56ad7d1007c6a1a9d62846a52d075 /tools
parent82a8a2aa0acc8af59f264d41090c3b99d695c2d5 (diff)
downloadframeworks_base-d4533f1469990582e4a2dd0898429093fe2690c0.zip
frameworks_base-d4533f1469990582e4a2dd0898429093fe2690c0.tar.gz
frameworks_base-d4533f1469990582e4a2dd0898429093fe2690c0.tar.bz2
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
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java5
1 files changed, 5 insertions, 0 deletions
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
}