mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Add user event log for deep shortcuts and all apps opening interaction.
b/30114798 Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user