mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Migrate launcher home settings button tap/longpress logging to WW
Bug: 157777128 Change-Id: Ic88811efc9aef8f38a0e7e5ae79e3b35236c6663
This commit is contained in:
@@ -32,7 +32,7 @@ import com.android.launcher3.util.ResourceBasedOverride;
|
||||
*/
|
||||
public class StatsLogManager implements ResourceBasedOverride {
|
||||
|
||||
interface EventEnum {
|
||||
public interface EventEnum {
|
||||
int getId();
|
||||
}
|
||||
|
||||
@@ -63,6 +63,18 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
+ "new/same value.")
|
||||
LAUNCHER_FOLDER_LABEL_UPDATED(460),
|
||||
|
||||
@UiEvent(doc = "User long pressed on the workspace empty space.")
|
||||
LAUNCHER_WORKSPACE_LONGPRESS(461),
|
||||
|
||||
@UiEvent(doc = "User tapped or long pressed on a wallpaper icon inside launcher settings.")
|
||||
LAUNCHER_WALLPAPER_BUTTON_TAP_OR_LONGPRESS(462),
|
||||
|
||||
@UiEvent(doc = "User tapped or long pressed on settings icon inside launcher settings.")
|
||||
LAUNCHER_SETTINGS_BUTTON_TAP_OR_LONGPRESS(463),
|
||||
|
||||
@UiEvent(doc = "User tapped or long pressed on widget tray icon inside launcher settings.")
|
||||
LAUNCHER_WIDGETSTRAY_BUTTON_TAP_OR_LONGPRESS(464),
|
||||
|
||||
@UiEvent(doc = "A dragged item is dropped on 'Remove' button in the target bar")
|
||||
LAUNCHER_ITEM_DROPPED_ON_REMOVE(465),
|
||||
|
||||
@@ -113,27 +125,27 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs a {@link LauncherEvent}.
|
||||
* Logs a {@link EventEnum}.
|
||||
*/
|
||||
public void log(LauncherEvent event) {
|
||||
public void log(EventEnum event) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs an event and accompanying {@link InstanceId}.
|
||||
*/
|
||||
public void log(LauncherEvent event, InstanceId instanceId) {
|
||||
public void log(EventEnum event, InstanceId instanceId) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs an event and accompanying {@link ItemInfo}.
|
||||
*/
|
||||
public void log(LauncherEvent event, @Nullable ItemInfo info) {
|
||||
public void log(EventEnum event, @Nullable ItemInfo itemInfo) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs an event and accompanying {@link InstanceId} and {@link ItemInfo}.
|
||||
*/
|
||||
public void log(LauncherEvent event, InstanceId instanceId, @Nullable ItemInfo info) {
|
||||
public void log(EventEnum event, InstanceId instanceId, @Nullable ItemInfo itemInfo) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user