Add westworld logging when user reaches All Apps education view.

Bug: 158333305
Change-Id: I324979640ead3670f4edc57fd61eba2585d33628
This commit is contained in:
Jon Miranda
2020-06-07 15:41:41 -07:00
parent f6858198b9
commit 472b5d5298
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

@@ -121,7 +121,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;