summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-06-07 12:12:02 -0700
committervadimt <vadimt@google.com>2019-06-07 12:13:11 -0700
commitc25d97534276057341f1d3b761af6013e83fc9dd (patch)
treec6edeb7c6ae501b0393d2447123cc53401450a4b /src
parentc11ea4e965daf3858a222f801fdae907fdc25087 (diff)
downloadandroid_packages_apps_Trebuchet-c25d97534276057341f1d3b761af6013e83fc9dd.tar.gz
android_packages_apps_Trebuchet-c25d97534276057341f1d3b761af6013e83fc9dd.tar.bz2
android_packages_apps_Trebuchet-c25d97534276057341f1d3b761af6013e83fc9dd.zip
More tracing for b/133009122
Bug: 133009122 Change-Id: Ic843c3147d8a7513b6e2b8732af18458eae10d63
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/dragndrop/DragController.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragController.java b/src/com/android/launcher3/dragndrop/DragController.java
index 9d3c8f75d..72a1abb83 100644
--- a/src/com/android/launcher3/dragndrop/DragController.java
+++ b/src/com/android/launcher3/dragndrop/DragController.java
@@ -27,6 +27,7 @@ import android.graphics.Bitmap;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.IBinder;
+import android.util.Log;
import android.view.DragEvent;
import android.view.HapticFeedbackConstants;
import android.view.KeyEvent;
@@ -491,6 +492,16 @@ public class DragController implements DragDriver.EventListener, TouchController
mLastTouch[0] = x;
mLastTouch[1] = y;
+ if (TestProtocol.sDebugTracing) {
+ Log.d(TestProtocol.NO_DRAG_TAG,
+ "handleMoveEvent Conditions " +
+ mIsInPreDrag + ", " +
+ (mIsInPreDrag && mOptions.preDragCondition != null) + ", " +
+ (mIsInPreDrag && mOptions.preDragCondition != null
+ && mOptions.preDragCondition.shouldStartDrag(
+ mDistanceSinceScroll)));
+ }
+
if (mIsInPreDrag && mOptions.preDragCondition != null
&& mOptions.preDragCondition.shouldStartDrag(mDistanceSinceScroll)) {
if (TestProtocol.sDebugTracing) {