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

Commit 441e5b76 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log tap on pause app." into ub-launcher3-rvc-dev

parents 7a41d1e9 377debe4
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -104,15 +104,17 @@ public class StatsLogManager implements ResourceBasedOverride {
                + "shortcut within longpress popup window.")
        LAUNCHER_SYSTEM_SHORTCUT_WIDGETS_TAP(514),

        @UiEvent(doc = "User opened app info of the package by tapping on appinfo system shortcut "
                + "within longpress popup window.")
        @UiEvent(doc = "User tapped on app info system shortcut.")
        LAUNCHER_SYSTEM_SHORTCUT_APP_INFO_TAP(515),

        @UiEvent(doc = "User tapped on split screen icon on a task menu.")
        LAUNCHER_SYSTEM_SHORTCUT_SPLIT_SCREEN_TAP(518),

        @UiEvent(doc = "User tapped on free form icon on a task menu.")
        LAUNCHER_SYSTEM_SHORTCUT_FREE_FORM_TAP(519);
        LAUNCHER_SYSTEM_SHORTCUT_FREE_FORM_TAP(519),

        @UiEvent(doc = "User tapped on pause app system shortcut.")
        LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP(519);
        // ADD MORE

        private final int mId;
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.launcher3.popup;

import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;

import android.annotation.TargetApi;
@@ -76,6 +77,8 @@ public class RemoteActionShortcut extends SystemShortcut<BaseDraggingActivity> {
    @Override
    public void onClick(View view) {
        AbstractFloatingView.closeAllOpenViews(mTarget);
        mTarget.getStatsLogManager()
                .log(LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP, mItemInfo.buildProto());

        final String actionIdentity = mAction.getTitle() + ", "
                + mItemInfo.getTargetComponent().getPackageName();