diff options
author | Tony Wickham <twickham@google.com> | 2017-02-01 09:13:24 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-02-07 10:16:52 -0800 |
commit | c6b79e307f59e936ee380da07b0bd6fafe0a490c (patch) | |
tree | 864121cc6cf3534fea8b01aae0de210eafe3bf55 /src/com/android/launcher3/dragndrop | |
parent | db7b82960a54b85510aaeba2f543b37b4dc59fc8 (diff) | |
download | android_packages_apps_Trebuchet-c6b79e307f59e936ee380da07b0bd6fafe0a490c.tar.gz android_packages_apps_Trebuchet-c6b79e307f59e936ee380da07b0bd6fafe0a490c.tar.bz2 android_packages_apps_Trebuchet-c6b79e307f59e936ee380da07b0bd6fafe0a490c.zip |
Add logging for notifications.
- Log notification launches
- Log notification swipes
- Fix logDragNDrop() to only log if the pre-drag ends (so it doesn't
log a long-press that only shows shortcuts without dragging).
- Add shortcut rank to logs when launching deep shortcuts, where 0
is the shortcut closest to the app icon (highest rank).
Bug: 34770729
Bug: 32410600
Change-Id: I99dcef9b6a71da2ef58e32397702bb137407b10f
Diffstat (limited to 'src/com/android/launcher3/dragndrop')
-rw-r--r-- | src/com/android/launcher3/dragndrop/DragController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragController.java b/src/com/android/launcher3/dragndrop/DragController.java index e31c8ffdd..7410ae6c9 100644 --- a/src/com/android/launcher3/dragndrop/DragController.java +++ b/src/com/android/launcher3/dragndrop/DragController.java @@ -582,8 +582,8 @@ public class DragController implements DragDriver.EventListener, TouchController } } final View dropTargetAsView = dropTarget instanceof View ? (View) dropTarget : null; - mLauncher.getUserEventDispatcher().logDragNDrop(mDragObject, dropTargetAsView); if (!mIsInPreDrag) { + mLauncher.getUserEventDispatcher().logDragNDrop(mDragObject, dropTargetAsView); mDragObject.dragSource.onDropCompleted( dropTargetAsView, mDragObject, flingAnimation != null, accepted); } |