From 2c095f367779ef32130c72849936a2e3013c8492 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Mon, 4 Oct 2010 14:13:40 -0700 Subject: Refinements to drag/drop Thumbnail measurement & drawing has been moved out into a delegate class called View.DragThumbnailBuilder. This consolidates the thumbnail-related code as well as ensuring that the drag initiator does not have to know a priori where to place the thumbnail relative to the touch point *before* the thumbnail measurement step, as was previously the case. startDrag() no longer needs to be told where the current touch point is at the time the drag is launched. Drag events are now dispatched only to VISIBLE views. Dispatch shouldn't double-recycle events any more when the target window is local to the system process. Change-Id: I49419103765a0cad2e18ddfcdd6dacb94daf1ff1 --- core/java/android/view/ViewDebug.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android/view/ViewDebug.java') diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java index b1d52725257e..727cf17e9dfd 100644 --- a/core/java/android/view/ViewDebug.java +++ b/core/java/android/view/ViewDebug.java @@ -135,6 +135,12 @@ public class ViewDebug { */ public static final boolean DEBUG_SHOW_FPS = false; + /** + * Enables detailed logging of drag/drop operations. + * @hide + */ + public static final boolean DEBUG_DRAG = true; + /** *

Enables or disables views consistency check. Even when this property is enabled, * view consistency checks happen only if {@link android.util.Config#DEBUG} is set -- cgit v1.2.3