diff options
author | vadimt <vadimt@google.com> | 2019-06-07 13:11:43 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-06-07 13:11:43 -0700 |
commit | 1b0b3aa1ba0cdfbc90364384b4746a3785069f14 (patch) | |
tree | a3b7a3f658589b62058c7e3ddf61851b54be3ceb /src | |
parent | 994d97daf851e409dc8f6810e3c25c2245d8476b (diff) | |
parent | c25d97534276057341f1d3b761af6013e83fc9dd (diff) | |
download | android_packages_apps_Trebuchet-1b0b3aa1ba0cdfbc90364384b4746a3785069f14.tar.gz android_packages_apps_Trebuchet-1b0b3aa1ba0cdfbc90364384b4746a3785069f14.tar.bz2 android_packages_apps_Trebuchet-1b0b3aa1ba0cdfbc90364384b4746a3785069f14.zip |
More tracing for b/133009122
am: c25d975342
Change-Id: Iee85b5a93612867c8eabae37b0d6fa1a388a4084
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/dragndrop/DragController.java | 11 |
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) { |