summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/logging/UserEventDispatcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/logging/UserEventDispatcher.java')
-rw-r--r--src/com/android/launcher3/logging/UserEventDispatcher.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/launcher3/logging/UserEventDispatcher.java b/src/com/android/launcher3/logging/UserEventDispatcher.java
index d5c6515c0..1a6dade31 100644
--- a/src/com/android/launcher3/logging/UserEventDispatcher.java
+++ b/src/com/android/launcher3/logging/UserEventDispatcher.java
@@ -177,13 +177,11 @@ public class UserEventDispatcher {
}
public void logActionCommand(int command, int containerType) {
- logActionCommand(command, containerType, 0);
+ logActionCommand(command, newContainerTarget(containerType));
}
- public void logActionCommand(int command, int containerType, int pageIndex) {
- LauncherEvent event = newLauncherEvent(
- newCommandAction(command), newContainerTarget(containerType));
- event.srcTarget[0].pageIndex = pageIndex;
+ public void logActionCommand(int command, Target target) {
+ LauncherEvent event = newLauncherEvent(newCommandAction(command), target);
dispatchUserEvent(event, null);
}