summaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorAbhilasha Chahal <abhichahal@google.com>2022-05-19 16:41:45 +0000
committerAbhilasha Chahal <abhichahal@google.com>2022-05-19 19:21:45 +0000
commitee14d4761ae4fbb8022163bb7afba34c0ab85de2 (patch)
treec3bff35b60fedfc80090cdefdcb3e8b330d4e6cd /go
parent3e6cd9999062798705c1f9050ba5ece30c88b567 (diff)
downloadLauncher3-ee14d4761ae4fbb8022163bb7afba34c0ab85de2.tar.gz
Add LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP event
Bug: 233224567 Test: Manually verified the event in logs Change-Id: Ie81ca8774adb241f1c8635444dad884f34f3929d
Diffstat (limited to 'go')
-rw-r--r--go/quickstep/src/com/android/launcher3/AppSharing.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/go/quickstep/src/com/android/launcher3/AppSharing.java b/go/quickstep/src/com/android/launcher3/AppSharing.java
index e717937749..cb1f1c7625 100644
--- a/go/quickstep/src/com/android/launcher3/AppSharing.java
+++ b/go/quickstep/src/com/android/launcher3/AppSharing.java
@@ -16,6 +16,8 @@
package com.android.launcher3;
+import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP;
+
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -123,6 +125,8 @@ public final class AppSharing {
@Override
public void onClick(View view) {
+ ActivityContext.lookupContext(view.getContext())
+ .getStatsLogManager().logger().log(LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP);
if (!isEnabled()) {
showCannotShareToast(view.getContext());
return;