summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PinchAnimationManager.java
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2016-10-05 15:40:51 -0700
committerJon Miranda <jonmiranda@google.com>2016-10-05 15:40:51 -0700
commitc4de137793b5031523fe9e20ba6e3817d695afeb (patch)
treee6296929c01560bfc3ab94a05523865c527c0c3d /src/com/android/launcher3/PinchAnimationManager.java
parentf3e35d93318190f995e6a0fc9d0441ac844b67e4 (diff)
downloadandroid_packages_apps_Trebuchet-c4de137793b5031523fe9e20ba6e3817d695afeb.tar.gz
android_packages_apps_Trebuchet-c4de137793b5031523fe9e20ba6e3817d695afeb.tar.bz2
android_packages_apps_Trebuchet-c4de137793b5031523fe9e20ba6e3817d695afeb.zip
Added logging for pinching in/out b/w workspace and overview.
Change-Id: I50f81a8a7841addef652cba2c448d09f3341c8b2
Diffstat (limited to 'src/com/android/launcher3/PinchAnimationManager.java')
-rw-r--r--src/com/android/launcher3/PinchAnimationManager.java8
1 files changed, 8 insertions, 0 deletions
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 {