Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee14d476 authored by Abhilasha Chahal's avatar Abhilasha Chahal
Browse files

Add LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP event

Bug: 233224567
Test: Manually verified the event in logs
Change-Id: Ie81ca8774adb241f1c8635444dad884f34f3929d
parent 3e6cd999
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
+3 −0
Original line number Diff line number Diff line
@@ -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