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

Commit d0791af2 authored by Vinit Nayak's avatar Vinit Nayak Committed by Android (Google) Code Review
Browse files

Merge "Add log when user attempts to split with widget" into main

parents 1cc90d80 701d267b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.launcher3.uioverrides;

import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_APP_LAUNCH_TAP;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SPLIT_WIDGET_ATTEMPT;

import android.app.ActivityOptions;
import android.app.ActivityTaskManager;
@@ -59,6 +60,9 @@ class QuickstepInteractionHandler implements RemoteViews.InteractionHandler {
                    remoteResponse.getLaunchOptions(view));
        }
        if (mLauncher.isSplitSelectionEnabled()) {
            // Log metric
            StatsLogManager.StatsLogger logger = mLauncher.getStatsLogManager().logger();
            logger.log(LAUNCHER_SPLIT_WIDGET_ATTEMPT);
            Toast.makeText(hostView.getContext(), R.string.split_widgets_not_supported,
                    Toast.LENGTH_SHORT).show();
            return true;
+3 −0
Original line number Diff line number Diff line
@@ -704,6 +704,9 @@ public class StatsLogManager implements ResourceBasedOverride {
        @UiEvent(doc = "User tapped on install to private space system shortcut.")
        LAUNCHER_PRIVATE_SPACE_INSTALL_SYSTEM_SHORTCUT_TAP(1565),

        @UiEvent(doc = "User attempted to create split screen with a widget")
        LAUNCHER_SPLIT_WIDGET_ATTEMPT(1604)

        // ADD MORE
        ;