Merge "Add westworld logging when user reaches All Apps education view." into ub-launcher3-rvc-dev

This commit is contained in:
Jonathan Miranda 2020-06-08 20:49:26 +00:00 committed by Android (Google) Code Review
commit ee4a2fe698
2 changed files with 7 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import static com.android.launcher3.anim.Interpolators.ACCEL;
import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
import static com.android.launcher3.anim.Interpolators.LINEAR;
import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_7;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALL_APPS_EDU_SHOWN;
import static com.android.launcher3.states.StateAnimationConfig.ANIM_ALL_APPS_FADE;
import android.animation.Animator;
@ -231,6 +232,8 @@ public class AllAppsEduView extends AbstractFloatingView {
launcher, parent);
view.init(launcher);
launcher.getDragLayer().addView(view);
launcher.getStatsLogManager().log(LAUNCHER_ALL_APPS_EDU_SHOWN);
view.requestLayout();
view.playAnimation();
}

View File

@ -124,7 +124,10 @@ public class StatsLogManager implements ResourceBasedOverride {
LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP(521),
@UiEvent(doc = "User tapped on pin system shortcut.")
LAUNCHER_SYSTEM_SHORTCUT_PIN_TAP(522);
LAUNCHER_SYSTEM_SHORTCUT_PIN_TAP(522),
@UiEvent(doc = "User is shown All Apps education view.")
LAUNCHER_ALL_APPS_EDU_SHOWN(523);
// ADD MORE
private final int mId;