Add LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP event
Bug: 233224567 Test: Manually verified the event in logs Change-Id: Ie81ca8774adb241f1c8635444dad884f34f3929d
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -589,6 +589,9 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
|
||||
@UiEvent(doc = "User tapped taskbar All Apps button.")
|
||||
LAUNCHER_TASKBAR_ALLAPPS_BUTTON_TAP(1057),
|
||||
|
||||
@UiEvent(doc = "User tapped on Share app system shortcut.")
|
||||
LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP(1075),
|
||||
;
|
||||
|
||||
// ADD MORE
|
||||
|
||||
Reference in New Issue
Block a user