diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-21 11:48:37 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-21 11:48:37 -0700 |
commit | 5aa2714959405043639cb2d0b8d9ab8c6eef0bd2 (patch) | |
tree | 92e46448e9a744378ede2da9f7cb8f8618bbbafb /src/com/android/launcher3/allapps/AllAppsTransitionController.java | |
parent | 06580312edc1fd1a94746de0626022e60d8e614e (diff) | |
download | android_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.java | 9 |
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); |