diff options
Diffstat (limited to 'src/com/android/launcher3/dragndrop/LauncherDragController.java')
-rw-r--r-- | src/com/android/launcher3/dragndrop/LauncherDragController.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/launcher3/dragndrop/LauncherDragController.java b/src/com/android/launcher3/dragndrop/LauncherDragController.java index a98d70ce71..dcbfa502e6 100644 --- a/src/com/android/launcher3/dragndrop/LauncherDragController.java +++ b/src/com/android/launcher3/dragndrop/LauncherDragController.java @@ -24,6 +24,7 @@ import android.content.res.Resources; import android.graphics.Point; import android.graphics.Rect; import android.graphics.drawable.Drawable; +import android.util.Log; import android.view.HapticFeedbackConstants; import android.view.View; @@ -36,6 +37,7 @@ import com.android.launcher3.Launcher; import com.android.launcher3.R; import com.android.launcher3.accessibility.DragViewStateAnnouncer; import com.android.launcher3.model.data.ItemInfo; +import com.android.launcher3.testing.TestProtocol; /** * Drag controller for Launcher activity @@ -65,6 +67,9 @@ public class LauncherDragController extends DragController<Launcher> { float initialDragViewScale, float dragViewScaleOnDrop, DragOptions options) { + if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.NO_DROP_TARGET, "5"); + } if (PROFILE_DRAWING_DURING_DRAG) { android.os.Debug.startMethodTracing("Launcher"); } @@ -96,7 +101,7 @@ public class LauncherDragController extends DragController<Launcher> { final float scaleDps = mIsInPreDrag ? res.getDimensionPixelSize(R.dimen.pre_drag_view_scale) : 0f; final DragView dragView = mDragObject.dragView = drawable != null - ? new DragView( + ? new LauncherDragView( mActivity, drawable, registrationX, @@ -104,7 +109,7 @@ public class LauncherDragController extends DragController<Launcher> { initialDragViewScale, dragViewScaleOnDrop, scaleDps) - : new DragView( + : new LauncherDragView( mActivity, view, view.getMeasuredWidth(), |