From c4de137793b5031523fe9e20ba6e3817d695afeb Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Wed, 5 Oct 2016 15:40:51 -0700 Subject: Added logging for pinching in/out b/w workspace and overview. Change-Id: I50f81a8a7841addef652cba2c448d09f3341c8b2 --- src/com/android/launcher3/PinchAnimationManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/android/launcher3/PinchAnimationManager.java') diff --git a/src/com/android/launcher3/PinchAnimationManager.java b/src/com/android/launcher3/PinchAnimationManager.java index baeb77c82..84ef12e16 100644 --- a/src/com/android/launcher3/PinchAnimationManager.java +++ b/src/com/android/launcher3/PinchAnimationManager.java @@ -24,6 +24,8 @@ import android.util.Log; import android.view.View; import android.view.animation.LinearInterpolator; +import com.android.launcher3.userevent.nano.LauncherLogProto; + import static com.android.launcher3.Workspace.State.NORMAL; import static com.android.launcher3.Workspace.State.OVERVIEW; @@ -162,9 +164,15 @@ public class PinchAnimationManager { } else if (threshold == PinchThresholdManager.THRESHOLD_THREE) { // Passing threshold 3 ends the pinch and snaps to the new state. if (startState == OVERVIEW && goingTowards == NORMAL) { + mLauncher.getUserEventDispatcher().logActionOnContainer( + LauncherLogProto.Action.PINCH, LauncherLogProto.Action.NONE, + LauncherLogProto.OVERVIEW, mWorkspace.getCurrentPage()); mLauncher.showWorkspace(true); mWorkspace.snapToPage(mWorkspace.getCurrentPage()); } else if (startState == NORMAL && goingTowards == OVERVIEW) { + mLauncher.getUserEventDispatcher().logActionOnContainer( + LauncherLogProto.Action.PINCH, LauncherLogProto.Action.NONE, + LauncherLogProto.WORKSPACE, mWorkspace.getCurrentPage()); mLauncher.showOverviewMode(true); } } else { -- cgit v1.2.3