mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
[AA+ Search] Add logging for header search icon tapping events.
Logging example for the search icon tapping event: https://paste.googleplex.com/4809431536631808 Bug: 198507048 Test: tested with AiAi apk with search icon sent as child of header. Change-Id: Ibbaec61b93c30a99ea2ffef8d7342490ba37335d
This commit is contained in:
@@ -17,6 +17,7 @@ package com.android.launcher3.touch;
|
||||
|
||||
import static com.android.launcher3.Launcher.REQUEST_BIND_PENDING_APPWIDGET;
|
||||
import static com.android.launcher3.Launcher.REQUEST_RECONFIGURE_APPWIDGET;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_SEARCHINAPP_LAUNCH;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_APP_LAUNCH_TAP;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_FOLDER_OPEN;
|
||||
import static com.android.launcher3.model.data.ItemInfoWithIcon.FLAG_DISABLED_BY_PUBLISHER;
|
||||
@@ -286,7 +287,13 @@ public class ItemClickHandler {
|
||||
Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
launcher.getStatsLogManager().logger().withItemInfo(itemInfo).log(LAUNCHER_APP_LAUNCH_TAP);
|
||||
if (itemInfo.hasFlags(SearchActionItemInfo.FLAG_SEARCH_IN_APP)) {
|
||||
launcher.getStatsLogManager().logger().withItemInfo(itemInfo).log(
|
||||
LAUNCHER_ALLAPPS_SEARCHINAPP_LAUNCH);
|
||||
} else {
|
||||
launcher.getStatsLogManager().logger().withItemInfo(itemInfo).log(
|
||||
LAUNCHER_APP_LAUNCH_TAP);
|
||||
}
|
||||
}
|
||||
|
||||
private static void startAppShortcutOrInfoActivity(View v, ItemInfo item, Launcher launcher) {
|
||||
|
||||
Reference in New Issue
Block a user