mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Revert "Use UiEvent for constants inside StatsLogManager"
This reverts commit 6b99a7d397.
Reason for revert: Launcher3 AOSP cannot link to uieventloggerlib because it's private API
Change-Id: Id652b8a4cba54b97d1d8b8644c2939903cc0e88a
This commit is contained in:
@@ -17,8 +17,6 @@ package com.android.launcher3.logging;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.android.internal.logging.UiEvent;
|
||||
import com.android.internal.logging.UiEventLogger;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.logger.LauncherAtom;
|
||||
import com.android.launcher3.logger.LauncherAtom.ItemInfo;
|
||||
@@ -30,15 +28,19 @@ import com.android.launcher3.util.ResourceBasedOverride;
|
||||
*/
|
||||
public class StatsLogManager implements ResourceBasedOverride {
|
||||
|
||||
public enum LauncherEvent implements UiEventLogger.UiEventEnum {
|
||||
@UiEvent(doc = "App launched from workspace, hotseat or folder in launcher")
|
||||
LAUNCHER_APP_LAUNCH_TAP(338),
|
||||
@UiEvent(doc = "Task launched from overview using TAP")
|
||||
LAUNCHER_TASK_LAUNCH_TAP(339),
|
||||
@UiEvent(doc = "Task launched from overview using SWIPE DOWN")
|
||||
LAUNCHER_TASK_LAUNCH_SWIPE_DOWN(340),
|
||||
@UiEvent(doc = "TASK dismissed from overview using SWIPE UP")
|
||||
LAUNCHER_TASK_DISMISS_SWIPE_UP(341);
|
||||
interface EventEnum {
|
||||
int getId();
|
||||
}
|
||||
|
||||
public enum LauncherEvent implements EventEnum {
|
||||
@LauncherUiEvent(doc = "App launched from workspace, hotseat or folder in launcher")
|
||||
APP_LAUNCH_TAP(1),
|
||||
@LauncherUiEvent(doc = "Task launched from overview using TAP")
|
||||
TASK_LAUNCH_TAP(2),
|
||||
@LauncherUiEvent(doc = "Task launched from overview using SWIPE DOWN")
|
||||
TASK_LAUNCH_SWIPE_DOWN(2),
|
||||
@LauncherUiEvent(doc = "TASK dismissed from overview using SWIPE UP")
|
||||
TASK_DISMISS_SWIPE_UP(3);
|
||||
// ADD MORE
|
||||
|
||||
private final int mId;
|
||||
|
||||
Reference in New Issue
Block a user