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

Commit d9342907 authored by Winson's avatar Winson
Browse files

Track double taps to launch the previous task.

Change-Id: Icd792ed4f508f8a8540a5cd2d12c3bdfd5827410
parent 931845fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1573,6 +1573,9 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
            Task launchTask = mStack.getStackTasks().get(launchTaskIndex);
            EventBus.getDefault().send(new LaunchTaskEvent(getChildViewForTask(launchTask),
                    launchTask, null, INVALID_STACK_ID, false /* screenPinningRequested */));

            MetricsLogger.action(getContext(), MetricsEvent.OVERVIEW_LAUNCH_PREVIOUS_TASK,
                    launchTask.key.getComponent().toString());
        }
    }

+3 −0
Original line number Diff line number Diff line
@@ -447,5 +447,8 @@ message MetricsEvent {

    // Logs the action the user takes when an app ANR'd.
    ACTION_APP_ANR = 317;

    // Logged when a user double taps the overview button to launch the previous task
    OVERVIEW_LAUNCH_PREVIOUS_TASK = 318;
  }
}