summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsTransitionController.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-07-21 11:48:37 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-07-21 11:48:37 -0700
commit5aa2714959405043639cb2d0b8d9ab8c6eef0bd2 (patch)
tree92e46448e9a744378ede2da9f7cb8f8618bbbafb /src/com/android/launcher3/allapps/AllAppsTransitionController.java
parent06580312edc1fd1a94746de0626022e60d8e614e (diff)
downloadandroid_packages_apps_Trebuchet-5aa2714959405043639cb2d0b8d9ab8c6eef0bd2.tar.gz
android_packages_apps_Trebuchet-5aa2714959405043639cb2d0b8d9ab8c6eef0bd2.tar.bz2
android_packages_apps_Trebuchet-5aa2714959405043639cb2d0b8d9ab8c6eef0bd2.zip
Add user event log for deep shortcuts and all apps opening interaction.
b/30114798 Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsTransitionController.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsTransitionController.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
index 03b3107aa..136308bb1 100644
--- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java
+++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
@@ -22,6 +22,7 @@ import com.android.launcher3.PagedView;
import com.android.launcher3.R;
import com.android.launcher3.Workspace;
import com.android.launcher3.Workspace.Direction;
+import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.launcher3.util.TouchController;
/**
@@ -210,6 +211,10 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
calculateDuration(velocity, mAppsView.getTranslationY());
if (!mLauncher.isAllAppsVisible()) {
+ mLauncher.getUserEventDispatcher().logActionOnContainer(
+ LauncherLogProto.Action.FLING,
+ LauncherLogProto.Action.UP,
+ LauncherLogProto.HOTSEAT);
mLauncher.showAppsView(true, true, false, false);
} else {
animateToAllApps(mCurrentAnimation, mAnimationDuration, true);
@@ -234,6 +239,10 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
} else {
calculateDuration(velocity, Math.abs(mAppsView.getTranslationY()));
if (!mLauncher.isAllAppsVisible()) {
+ mLauncher.getUserEventDispatcher().logActionOnContainer(
+ LauncherLogProto.Action.SWIPE,
+ LauncherLogProto.Action.UP,
+ LauncherLogProto.HOTSEAT);
mLauncher.showAppsView(true, true, false, false);
} else {
animateToAllApps(mCurrentAnimation, mAnimationDuration, true);